Skip to content

Commit 43daeff

Browse files
authored
feat: change ready-to-transfer output to CSV (#3)
Signed-off-by: Miroslav Bajtoš <[email protected]>
1 parent 448b547 commit 43daeff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/ready-for-transfer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { formatEther } from 'ethers'
33

44
export const readyForTransfer = async opts => {
55
const { contract } = await createContract(opts)
6+
console.log('address,fil_amount')
67
for (let i = 0; ; i++) {
78
try {
89
const address = await contract.readyForTransfer(i)
910
const amount = await contract.rewardsScheduledFor(address)
10-
console.log(`${address} FIL ${formatEther(amount)}`)
11+
console.log(`${address},${formatEther(amount)}`)
1112
} catch (err) {
1213
break
1314
}

0 commit comments

Comments
 (0)