convert properly large numbers
This commit is contained in:
parent
987295e8e4
commit
16ebb69b33
|
@ -10,5 +10,5 @@ const token = new web3.eth.Contract(abiToken, HOME_TOKEN_ADDRESS)
|
|||
const address = process.argv[2]
|
||||
|
||||
token.methods.balanceOf(address).call()
|
||||
.then(x => console.log(x.toNumber()))
|
||||
.then(x => console.log(x.toString()))
|
||||
.catch(() => console.log(0))
|
||||
|
|
Loading…
Reference in New Issue