mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix base
This commit is contained in:
parent
42bb90341d
commit
8ed657d5d5
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user