diff --git a/scripts/list-contributors.js b/scripts/list-contributors.js index 235fffb..88cc126 100644 --- a/scripts/list-contributors.js +++ b/scripts/list-contributors.js @@ -21,24 +21,24 @@ module.exports = async function(callback) { try { const contributors = await kredits.Contributor.all() + + contributors.forEach((c) => { + table.push([ + c.id.toString(), + c.account, + `${c.name}`, + c.isCore, + ethers.utils.formatEther(c.balance), + c.totalKreditsEarned.toString(), + c.contributionsCount.toString(), + c.ipfsHash + ]) + }) } catch(e) { callback(e); return; } - contributors.forEach((c) => { - table.push([ - c.id.toString(), - c.account, - `${c.name}`, - c.isCore, - ethers.utils.formatEther(c.balance), - c.totalKreditsEarned.toString(), - c.contributionsCount.toString(), - c.ipfsHash - ]) - }) - console.log(table.toString()) callback()