Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: spec id #38

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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