From afb6b725f17ffed6002cdd91c43e4406ad7daf45 Mon Sep 17 00:00:00 2001 From: lightsing Date: Fri, 15 Nov 2024 15:57:57 +0800 Subject: [PATCH] fix spec id --- crates/primitives/src/specification.rs | 10 +++++----- crates/revm/src/builder.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/primitives/src/specification.rs b/crates/primitives/src/specification.rs index 8be8705d37..cc98dfaff7 100644 --- a/crates/primitives/src/specification.rs +++ b/crates/primitives/src/specification.rs @@ -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, } @@ -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)); } } diff --git a/crates/revm/src/builder.rs b/crates/revm/src/builder.rs index c30b38094c..6f78f58aa4 100644 --- a/crates/revm/src/builder.rs +++ b/crates/revm/src/builder.rs @@ -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;