diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-08-14 11:12:22 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-08-15 02:16:58 +0800 |
commit | ebb23721ed2c350578283291ea65ef7bd81d62be (patch) | |
tree | d20b541f269dbce42932b3ee46d3a34450ea1b07 /ui/app/token-util.js | |
parent | e2be22a4b722df608cb764042cc8ade6664414d8 (diff) | |
download | tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar.gz tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar.bz2 tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar.lz tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar.xz tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.tar.zst tangerine-wallet-browser-ebb23721ed2c350578283291ea65ef7bd81d62be.zip |
Cast arguments for new Bignumbers() to string.
Diffstat (limited to 'ui/app/token-util.js')
-rw-r--r-- | ui/app/token-util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 0d4233766..8798ed266 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -44,7 +44,7 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { function calcTokenAmount (value, decimals) { const multiplier = Math.pow(10, Number(decimals || 0)) - return new BigNumber(value).div(multiplier).toNumber() + return new BigNumber(String(value)).div(multiplier).toNumber() } |