Skip to content

Commit

Permalink
fix spec id
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Nov 15, 2024
1 parent a843852 commit afb6b72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions crates/primitives/src/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ pub enum SpecId {
/// Although the Curie update include new opcodes in Cancun, the most important change
/// `EIP-4844` is not included. So we sort it before Cancun.
CURIE = 19,
CANCUN = 20,
PRAGUE = 21,
OSAKA = 22,
/// Euclid update introduces:
/// - Support `p256_verify` precompile.
EUCLID = 23,
EUCLID = 20,
CANCUN = 21,
PRAGUE = 22,
OSAKA = 23,
#[default]
LATEST = u8::MAX,
}
Expand Down Expand Up @@ -831,7 +831,7 @@ mod scroll_tests {
assert!(EuclidSpec::enabled(SpecId::PRE_BERNOULLI));
assert!(EuclidSpec::enabled(SpecId::BERNOULLI));
assert!(EuclidSpec::enabled(SpecId::CURIE));
assert!(EuclidSpec::enabled(SpecId::CANCUN));
assert!(!EuclidSpec::enabled(SpecId::CANCUN));
assert!(!EuclidSpec::enabled(SpecId::LATEST));
}
}
2 changes: 1 addition & 1 deletion crates/revm/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<'a> Default for EvmBuilder<'a, SetGenericStage, (), EmptyDB> {

} else if #[cfg(all(feature = "scroll-default-handler",
not(feature = "negate-scroll-default-handler")))] {
let mut handler_cfg = HandlerCfg::new(SpecId::CURIE);
let mut handler_cfg = HandlerCfg::new(SpecId::EUCLID);
// set is_scroll to true by default.
handler_cfg.is_scroll = true;

Expand Down

0 comments on commit afb6b72

Please sign in to comment.