convert properly large numbers

This commit is contained in:
Alexander Kolotov 2019-08-23 00:20:16 +03:00
parent 987295e8e4
commit 16ebb69b33
1 changed files with 1 additions and 1 deletions

View File

@ -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))