mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
fix type
This commit is contained in:
parent
79976b7026
commit
3554292c02
@ -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).toString()
|
||||
return new BigNumber(value).div(multiplier).toNumber()
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user