Skip to content

Commit

Permalink
fix: Make L1 tx data fee calculation aware of Ecotone hardfork (#8268)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianBland committed May 15, 2024
1 parent e7d85e1 commit 79d505a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/optimism/evm/src/l1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ impl RethL1BlockInfo for L1BlockInfo {
return Ok(U256::ZERO)
}

let spec_id = if chain_spec.is_fork_active_at_timestamp(Hardfork::Regolith, timestamp) {
let spec_id = if chain_spec.is_fork_active_at_timestamp(Hardfork::Ecotone, timestamp) {
SpecId::ECOTONE
} else if chain_spec.is_fork_active_at_timestamp(Hardfork::Regolith, timestamp) {
SpecId::REGOLITH
} else if chain_spec.is_fork_active_at_timestamp(Hardfork::Bedrock, timestamp) {
SpecId::BEDROCK
Expand Down

0 comments on commit 79d505a

Please sign in to comment.