diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-01-25 06:53:45 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2017-01-25 06:54:38 +0800 |
commit | 8ed657d5d574389a1b4c44d127ecf37f86cc7e64 (patch) | |
tree | b1175116751d374843c21922066b8afa9d77cd25 /ui/app | |
parent | 42bb90341dde5699dca4ba7ad8891f26c1faf4a6 (diff) | |
download | tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar.gz tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar.bz2 tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar.lz tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar.xz tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.tar.zst tangerine-wallet-browser-8ed657d5d574389a1b4c44d127ecf37f86cc7e64.zip |
fix base
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/conf-tx.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index d5c26d79f..1bd69f7d9 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -134,9 +134,9 @@ ConfirmTxScreen.prototype.checkBalanceAgainstTx = function (txData) { var address = txData.txParams.from || state.selectedAccount var account = state.accounts[address] var balance = account ? account.balance : '0x0' - var maxCost = new BN(txData.maxCost) + var maxCost = new BN(txData.maxCost, 16) - var balanceBn = new BN(ethUtil.stripHexPrefix(balance), 10) + var balanceBn = new BN(ethUtil.stripHexPrefix(balance), 16) return maxCost.gt(balanceBn) } |