1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
This commit is contained in:
板橋 清信 2018-07-23 17:23:34 +09:00
parent 79976b7026
commit 3554292c02

View File

@ -44,7 +44,7 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) {
function calcTokenAmount (value, decimals) { function calcTokenAmount (value, decimals) {
const multiplier = Math.pow(10, Number(decimals || 0)) const multiplier = Math.pow(10, Number(decimals || 0))
return new BigNumber(value).div(multiplier).toString() return new BigNumber(value).div(multiplier).toNumber()
} }