From 7177f222224f981353ba905c9ba7179fc631537a Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 5 Mar 2024 17:36:38 +0100 Subject: [PATCH] check gas fee in validation mode --- internal/ethapi/simulate.go | 2 +- internal/web3ext/web3ext.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go index 195216d71f..297d7d0513 100644 --- a/internal/ethapi/simulate.go +++ b/internal/ethapi/simulate.go @@ -185,7 +185,7 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header tracer = newTracer(sim.traceTransfers, blockContext.BlockNumber.Uint64(), common.Hash{}, common.Hash{}, 0) config = sim.b.ChainConfig() vmConfig = &vm.Config{ - NoBaseFee: true, + NoBaseFee: !sim.validate, // Block hash will be repaired after execution. Tracer: tracer, } diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 76b71989e3..5da733ee5d 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -620,8 +620,8 @@ web3._extend({ new web3._extend.Method({ name: 'simulateV1', call: 'eth_simulateV1', - params: 3, - inputFormatter: [null, web3._extend.formatters.inputDefaultBlockNumberFormatter, null], + params: 2, + inputFormatter: [null, web3._extend.formatters.inputDefaultBlockNumberFormatter], }), new web3._extend.Method({ name: 'getBlockReceipts',