diff --git a/cmd/rpcdaemon/commands/eth_callMany.go b/cmd/rpcdaemon/commands/eth_callMany.go index 4f979d331d7..7f1cb7da142 100644 --- a/cmd/rpcdaemon/commands/eth_callMany.go +++ b/cmd/rpcdaemon/commands/eth_callMany.go @@ -170,6 +170,7 @@ func (api *APIImpl) CallMany(ctx context.Context, bundles []Bundle, simulateCont GasLimit: parent.GasLimit, BaseFee: &baseFee, } + blockCtx.L1CostFunc = types.NewL1CostFunc(chainConfig, st) // Get a new instance of the EVM evm = vm.NewEVM(blockCtx, txCtx, st, chainConfig, vm.Config{Debug: false}) diff --git a/cmd/rpcdaemon/commands/tracing.go b/cmd/rpcdaemon/commands/tracing.go index 9dd9e11ef72..43ec41e768f 100644 --- a/cmd/rpcdaemon/commands/tracing.go +++ b/cmd/rpcdaemon/commands/tracing.go @@ -474,6 +474,7 @@ func (api *PrivateDebugAPIImpl) TraceCallMany(ctx context.Context, bundles []Bun GasLimit: parent.GasLimit, BaseFee: &baseFee, } + blockCtx.L1CostFunc = types.NewL1CostFunc(chainConfig, st) // Get a new instance of the EVM evm = vm.NewEVM(blockCtx, txCtx, st, chainConfig, vm.Config{Debug: false})