mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3795 from MetaMask/i3790-IncreaseSafeGasLimit
Increase safe gas limit
This commit is contained in:
commit
9ec42a87b3
@ -3,6 +3,7 @@
|
|||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
- Fix bug where the "Reset account" feature would not clear the network cache.
|
- 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
|
## 4.4.0 Mon Mar 26 2018
|
||||||
|
|
||||||
|
@ -62,8 +62,8 @@ PendingTx.prototype.render = function () {
|
|||||||
const gasBn = hexToBn(gas)
|
const gasBn = hexToBn(gas)
|
||||||
// default to 8MM gas limit
|
// default to 8MM gas limit
|
||||||
const gasLimit = new BN(parseInt(blockGasLimit) || '8000000')
|
const gasLimit = new BN(parseInt(blockGasLimit) || '8000000')
|
||||||
const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 19, 20)
|
const safeGasLimitBN = this.bnMultiplyByFraction(gasLimit, 99, 100)
|
||||||
const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 18, 20)
|
const saferGasLimitBN = this.bnMultiplyByFraction(gasLimit, 98, 100)
|
||||||
const safeGasLimit = safeGasLimitBN.toString(10)
|
const safeGasLimit = safeGasLimitBN.toString(10)
|
||||||
|
|
||||||
// Gas Price
|
// Gas Price
|
||||||
@ -311,7 +311,7 @@ PendingTx.prototype.render = function () {
|
|||||||
style: {
|
style: {
|
||||||
fontSize: '0.9em',
|
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,
|
: null,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user