diff --git a/scripts/list-contributions.js b/scripts/list-contributions.js index 50d9fe3..0f92ae4 100644 --- a/scripts/list-contributions.js +++ b/scripts/list-contributions.js @@ -15,7 +15,7 @@ module.exports = async function(callback) { console.log(`Using Contribution at: ${kredits.Contribution.contract.address}`); const table = new Table({ - head: ['ID', 'Contributor ID', 'Description', 'Amount', 'Confirmed?', 'Vetoed?', 'Claimed?'] + head: ['ID', 'Contributor ID', 'Description', 'Amount', 'Confirmed?', 'Vetoed?', 'Claimed?', 'IPFS'] }) try { @@ -33,6 +33,7 @@ module.exports = async function(callback) { confirmed, c.vetoed, c.claimed, + c.ipfsHash ]) }); diff --git a/scripts/list-contributors.js b/scripts/list-contributors.js index 14e602c..6ac7dc5 100644 --- a/scripts/list-contributors.js +++ b/scripts/list-contributors.js @@ -17,7 +17,7 @@ module.exports = async function(callback) { const table = new Table({ - head: ['ID', 'Account', 'Core?', 'Name', 'Balance'] + head: ['ID', 'Account', 'Name', 'Core?', 'Balance', 'IPFS'] }) let contributors = await kredits.Contributor.all() @@ -26,9 +26,10 @@ module.exports = async function(callback) { table.push([ c.id.toString(), c.account, - c.isCore, `${c.name}`, - ethers.utils.formatEther(c.balance) + c.isCore, + ethers.utils.formatEther(c.balance), + c.ipfsHash ]) }) console.log(table.toString())