1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

tx-gas-utils - query for block without tx bodies

This commit is contained in:
kumavis 2018-05-25 13:21:42 -07:00
parent a0fe5b9190
commit 61ef4f1f29

View File

@ -25,7 +25,7 @@ class TxGasUtil {
@returns {object} the txMeta object with the gas written to the txParams
*/
async analyzeGasUsage (txMeta) {
const block = await this.query.getBlockByNumber('latest', true)
const block = await this.query.getBlockByNumber('latest', false)
let estimatedGasHex
try {
estimatedGasHex = await this.estimateTxGas(txMeta, block.gasLimit)
@ -126,4 +126,4 @@ class TxGasUtil {
}
}
module.exports = TxGasUtil
module.exports = TxGasUtil