aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-02-21 07:44:04 +0800
committerDan Finlay <dan@danfinlay.com>2018-02-21 07:44:04 +0800
commit16f9ddc72c4a1c49402ea3b883a0e580c19f0651 (patch)
treed92673d4b281949fc9a13b86dc44b9ea5fbaea57
parenta1b72e5252e15113c98180194cfa7f1640bde08e (diff)
downloadtangerine-wallet-browser-16f9ddc72c4a1c49402ea3b883a0e580c19f0651.tar.gz
tangerine-wallet-browser-16f9ddc72c4a1c49402ea3b883a0e580c19f0651.tar.zst
tangerine-wallet-browser-16f9ddc72c4a1c49402ea3b883a0e580c19f0651.zip
Add 8MM gas limit default to send screen
-rw-r--r--old-ui/app/components/pending-tx.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/old-ui/app/components/pending-tx.js b/old-ui/app/components/pending-tx.js
index 10208b5ce..720df2243 100644
--- a/old-ui/app/components/pending-tx.js
+++ b/old-ui/app/components/pending-tx.js
@@ -60,7 +60,8 @@ PendingTx.prototype.render = function () {
// Gas
const gas = txParams.gas
const gasBn = hexToBn(gas)
- const gasLimit = new BN(parseInt(blockGasLimit))
+ // default to 8MM gas limit
+ const gasLimit = new BN(parseInt(blockGasLimit) || '8000000')
const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 19, 20)
const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 18, 20)
const safeGasLimit = safeGasLimitBN.toString(10)