aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-01-25 05:19:26 +0800
committerFrankie <frankie.diamond@gmail.com>2017-01-25 05:19:26 +0800
commitb2623510aec78cbabdcb4bbfaf5c9c406f4e428a (patch)
treea6e52fbb93f046377d7bd2321e09c4f9230d0e16 /ui
parent247f7aad5e358fae33616fd310e695e06673dd19 (diff)
downloadtangerine-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')
-rw-r--r--ui/app/conf-tx.js2
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)
}