diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-10-14 07:04:23 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-10-14 07:04:23 +0800 |
commit | 67eba9f542588f13d37aa5e10c659c93d6e58dc1 (patch) | |
tree | fae56393ba50ec01e368f8b835b72ee6fc34876d /ui | |
parent | b200f74d5f414408881fc56b44dc3c7c7bbb7996 (diff) | |
download | tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar.gz tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar.bz2 tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar.lz tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar.xz tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.tar.zst tangerine-wallet-browser-67eba9f542588f13d37aa5e10c659c93d6e58dc1.zip |
Specify base 10 in bignumber
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/pending-tx-details.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js index 0f7e20613..545302098 100644 --- a/ui/app/components/pending-tx-details.js +++ b/ui/app/components/pending-tx-details.js @@ -32,7 +32,7 @@ PTXP.render = function () { var gasMultiplier = txData.gasMultiplier var gasCost = new BN(ethUtil.stripHexPrefix(txParams.gas || txData.estimatedGas), 16) var gasPrice = new BN(ethUtil.stripHexPrefix(txParams.gasPrice || '0x4a817c800'), 16) - gasPrice = gasPrice.mul(new BN(gasMultiplier * 100)).div(new BN(100, 10)) + gasPrice = gasPrice.mul(new BN(gasMultiplier * 100), 10).div(new BN(100, 10)) var txFee = gasCost.mul(gasPrice) var txValue = new BN(ethUtil.stripHexPrefix(txParams.value || '0x0'), 16) var maxCost = txValue.add(txFee) |