check gas fee in validation mode

This commit is contained in:
Sina Mahmoodi 2024-03-05 17:36:38 +01:00
parent 9fa1556dff
commit 7177f22222
2 changed files with 3 additions and 3 deletions

View file

@ -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,
}

View file

@ -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',