diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-03-30 04:55:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 04:55:48 +0800 |
commit | 9ec42a87b3d7cf669082c046c5acbd1bc0f5f747 (patch) | |
tree | e9cb956752cea0075cac9f8d77ab7c1abcf0e08a | |
parent | 49d27815f3eed27e0ef4d5efc0ef051bdfd7c102 (diff) | |
parent | 4cd9c155dbbf01621816891c66eef3b37fb2df92 (diff) | |
download | tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar.gz tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar.bz2 tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar.lz tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar.xz tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.tar.zst tangerine-wallet-browser-9ec42a87b3d7cf669082c046c5acbd1bc0f5f747.zip |
Merge pull request #3795 from MetaMask/i3790-IncreaseSafeGasLimit
Increase safe gas limit
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | old-ui/app/components/pending-tx.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 06cf51c14..bb9554a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Current Master - Fix bug where the "Reset account" feature would not clear the network cache. +- Increase maximum gas limit, to allow very gas heavy transactions, since block gas limits have been stable. ## 4.4.0 Mon Mar 26 2018 diff --git a/old-ui/app/components/pending-tx.js b/old-ui/app/components/pending-tx.js index 720df2243..7f63d9fdf 100644 --- a/old-ui/app/components/pending-tx.js +++ b/old-ui/app/components/pending-tx.js @@ -62,8 +62,8 @@ PendingTx.prototype.render = function () { const gasBn = hexToBn(gas) // 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 safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 99, 100) + const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 98, 100) const safeGasLimit = safeGasLimitBN.toString(10) // Gas Price @@ -311,7 +311,7 @@ PendingTx.prototype.render = function () { style: { fontSize: '0.9em', }, - }, 'Gas limit set dangerously high. Approving this transaction is likely to fail.') + }, 'Gas limit set dangerously high. Approving this transaction is liable to fail.') : null, ]), |