Skip to content

Commit

Permalink
fix: add CANCUN to revm_spec_by_timestamp_after_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Sep 20, 2023
1 parent a52b433 commit 61fdf68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/revm/revm-primitives/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ pub fn revm_spec_by_timestamp_after_merge(
chain_spec: &ChainSpec,
timestamp: u64,
) -> revm::primitives::SpecId {
if chain_spec.is_fork_active_at_timestamp(Hardfork::Shanghai, timestamp) {
if chain_spec.is_cancun_activated_at_timestamp(timestamp) {
revm::primitives::CANCUN
} else if chain_spec.is_shanghai_activated_at_timestamp(timestamp) {
revm::primitives::SHANGHAI
} else {
revm::primitives::MERGE
Expand Down

0 comments on commit 61fdf68

Please sign in to comment.