Show IPFS hash in list script output
This commit is contained in:
parent
9c5a517fb9
commit
4c0bb879e8
@ -15,7 +15,7 @@ module.exports = async function(callback) {
|
|||||||
console.log(`Using Contribution at: ${kredits.Contribution.contract.address}`);
|
console.log(`Using Contribution at: ${kredits.Contribution.contract.address}`);
|
||||||
|
|
||||||
const table = new Table({
|
const table = new Table({
|
||||||
head: ['ID', 'Contributor ID', 'Description', 'Amount', 'Confirmed?', 'Vetoed?', 'Claimed?']
|
head: ['ID', 'Contributor ID', 'Description', 'Amount', 'Confirmed?', 'Vetoed?', 'Claimed?', 'IPFS']
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -33,6 +33,7 @@ module.exports = async function(callback) {
|
|||||||
confirmed,
|
confirmed,
|
||||||
c.vetoed,
|
c.vetoed,
|
||||||
c.claimed,
|
c.claimed,
|
||||||
|
c.ipfsHash
|
||||||
])
|
])
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ module.exports = async function(callback) {
|
|||||||
|
|
||||||
|
|
||||||
const table = new Table({
|
const table = new Table({
|
||||||
head: ['ID', 'Account', 'Core?', 'Name', 'Balance']
|
head: ['ID', 'Account', 'Name', 'Core?', 'Balance', 'IPFS']
|
||||||
})
|
})
|
||||||
|
|
||||||
let contributors = await kredits.Contributor.all()
|
let contributors = await kredits.Contributor.all()
|
||||||
@ -26,9 +26,10 @@ module.exports = async function(callback) {
|
|||||||
table.push([
|
table.push([
|
||||||
c.id.toString(),
|
c.id.toString(),
|
||||||
c.account,
|
c.account,
|
||||||
c.isCore,
|
|
||||||
`${c.name}`,
|
`${c.name}`,
|
||||||
ethers.utils.formatEther(c.balance)
|
c.isCore,
|
||||||
|
ethers.utils.formatEther(c.balance),
|
||||||
|
c.ipfsHash
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
console.log(table.toString())
|
console.log(table.toString())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user