mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #3250 from MetaMask/i#3136
fix - hex prefix estimatedGas on txMeta
This commit is contained in:
commit
c0893f2bcc
@ -4,6 +4,7 @@ const {
|
|||||||
BnMultiplyByFraction,
|
BnMultiplyByFraction,
|
||||||
bnToHex,
|
bnToHex,
|
||||||
} = require('./util')
|
} = require('./util')
|
||||||
|
const addHexPrefix = require('ethereumjs-util').addHexPrefix
|
||||||
const SIMPLE_GAS_COST = '0x5208' // Hex for 21000, cost of a simple send.
|
const SIMPLE_GAS_COST = '0x5208' // Hex for 21000, cost of a simple send.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -68,7 +69,7 @@ module.exports = class TxGasUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTxGas (txMeta, blockGasLimitHex, estimatedGasHex) {
|
setTxGas (txMeta, blockGasLimitHex, estimatedGasHex) {
|
||||||
txMeta.estimatedGas = estimatedGasHex
|
txMeta.estimatedGas = addHexPrefix(estimatedGasHex)
|
||||||
const txParams = txMeta.txParams
|
const txParams = txMeta.txParams
|
||||||
|
|
||||||
// if gasLimit was specified and doesnt OOG,
|
// if gasLimit was specified and doesnt OOG,
|
||||||
|
Loading…
Reference in New Issue
Block a user