Skip to content

Commit

Permalink
Revert "Go back to original L1 fee handling"
Browse files Browse the repository at this point in the history
This reverts commit e6a3423.
  • Loading branch information
gastonponti committed Nov 20, 2024
1 parent e6a3423 commit c07df60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/types/rollup_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c07df60

Please sign in to comment.