From c07df60fb1c0b6cbc15ff836b129812c0c7af932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Ponti?= Date: Wed, 20 Nov 2024 14:53:26 -0300 Subject: [PATCH] Revert "Go back to original L1 fee handling" This reverts commit e6a34232c02327efd6de781633cea6314df43432. --- core/types/rollup_cost.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/types/rollup_cost.go b/core/types/rollup_cost.go index e0bc26d92f..405497cf44 100644 --- a/core/types/rollup_cost.go +++ b/core/types/rollup_cost.go @@ -124,6 +124,9 @@ func NewL1CostFunc(config *params.ChainConfig, statedb StateGetter) L1CostFunc { forBlock := ^uint64(0) var cachedFunc l1CostFunc selectFunc := func(blockTime uint64) l1CostFunc { + if config.IsCel2(blockTime) { + return func(rcd RollupCostData) (fee, gasUsed *big.Int) { return new(big.Int), new(big.Int) } + } if !config.IsOptimismEcotone(blockTime) { return newL1CostFuncBedrock(config, statedb, blockTime) }