Slide 15
Slide 15 text
truffle(ibc1)> MiniToken.deployed().then((instance) => instance.balanceOf(accounts[2]))
BN { negative: 0, words: [ 50, <1 empty item> ], length: 1, red: null }
truffle(ibc1)> await MiniToken.deployed().then(instance => instance.sendTransfer(25,
accounts[1], "transfer", "channel-0", 1500, {from: accounts[2]}));
{
tx: '0xd7f...',
receipt: {
...
},
logs: [
{
...
event: 'Burn',
args: [Result]
},
{
...
event: 'SendTransfer',
args: [Result]
}
]
}
truffle(ibc1)> MiniToken.deployed().then((instance) => instance.balanceOf(accounts[2]))
BN { negative: 0, words: [ 25, <1 empty item> ], length: 1, red: null }