mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Default validated block gas limit to 8MM when none identified
Mitigates #3266
This commit is contained in:
parent
a26add6fdf
commit
70132e6df6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user