diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-01-25 05:19:26 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2017-01-25 05:19:26 +0800 |
commit | b2623510aec78cbabdcb4bbfaf5c9c406f4e428a (patch) | |
tree | a6e52fbb93f046377d7bd2321e09c4f9230d0e16 /ui/app | |
parent | 247f7aad5e358fae33616fd310e695e06673dd19 (diff) | |
download | tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar.gz tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar.bz2 tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar.lz tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar.xz tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.tar.zst tangerine-wallet-browser-b2623510aec78cbabdcb4bbfaf5c9c406f4e428a.zip |
Fix issue where ConfTx view lets you approve txs when the account has insufficient balance
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/conf-tx.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index a6e03c3ed..d5c26d79f 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -136,7 +136,7 @@ ConfirmTxScreen.prototype.checkBalanceAgainstTx = function (txData) { var balance = account ? account.balance : '0x0' var maxCost = new BN(txData.maxCost) - var balanceBn = new BN(ethUtil.stripHexPrefix(balance), 16) + var balanceBn = new BN(ethUtil.stripHexPrefix(balance), 10) return maxCost.gt(balanceBn) } |