aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conf-tx.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-01-25 07:00:46 +0800
committerGitHub <noreply@github.com>2017-01-25 07:00:46 +0800
commit23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8 (patch)
tree546c685f6ee3f9cd7e03980a0909f54f94144b47 /ui/app/conf-tx.js
parent5811f2ab14f3a92eb8c92f20eb16a9b6dba35902 (diff)
parent8ed657d5d574389a1b4c44d127ecf37f86cc7e64 (diff)
downloadtangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar.gz
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar.bz2
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar.lz
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar.xz
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.tar.zst
tangerine-wallet-browser-23c2b0b9a5d3f222bfeba7bcff5cf5a57367ffc8.zip
Merge pull request #1050 from MetaMask/fixConfTxBalanceLogic
Fix conf tx balance logic
Diffstat (limited to 'ui/app/conf-tx.js')
-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..1bd69f7d9 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -134,7 +134,7 @@ 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), 16)
return maxCost.gt(balanceBn)