mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Increase permitted safe gas limit
Block gas limits have been incredibly stable lately: https://etherscan.io/chart/gaslimit And this validation has prevented Aragon's new beta from working: https://twitter.com/izqui9/status/979373309312815104 Fixes #3790
This commit is contained in:
parent
650b716f55
commit
4d2d3d4430
@ -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,
|
||||
]),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user