aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-02-16 07:15:07 +0800
committerDan Finlay <dan@danfinlay.com>2018-02-16 07:15:26 +0800
commit70132e6df6de0722113f5b461b4cec2419c45266 (patch)
tree2dd9ec05abe07b3f5b8d54dd386433b29eee6b24
parenta26add6fdfbaa74f1d357e42aa9a260b68d14bed (diff)
downloadtangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar.gz
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar.bz2
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar.lz
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar.xz
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.tar.zst
tangerine-wallet-browser-70132e6df6de0722113f5b461b4cec2419c45266.zip
Default validated block gas limit to 8MM when none identified
Mitigates #3266
-rw-r--r--ui/app/components/pending-tx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 32d54902e..eb6ece176 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -60,7 +60,7 @@ PendingTx.prototype.render = function () {
// Gas
const gas = txParams.gas
const gasBn = hexToBn(gas)
- const gasLimit = new BN(parseInt(blockGasLimit))
+ const gasLimit = new BN(parseInt(blockGasLimit) || '8000000') // default to 8MM gas limit
const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 19, 20)
const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 18, 20)
const safeGasLimit = safeGasLimitBN.toString(10)