I am trying to execute commands from the following tutorial:
I am getting an integer error while executing a command:
truffle(ganache)> balanceInEth = address => web3.utils.fromWei(getBalance(address).toString(), 'wei')
[Function: balanceInEth]
truffle(ganache)> balanceInEth(victim.address)
/usr/local/lib/node_modules/truffle/build/cli.bundled.js:57187 throw new Error('[number-to-bn] while converting number ' + JSON.stringify(arg) + ' to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.');
Somebody please guide me.
Zulfi.