diff --git a/crates/precompile/src/lib.rs b/crates/precompile/src/lib.rs index bc490c7507..a8eaa817a2 100644 --- a/crates/precompile/src/lib.rs +++ b/crates/precompile/src/lib.rs @@ -64,8 +64,6 @@ impl Precompiles { PrecompileSpecId::PRE_BERNOULLI => Self::pre_bernoulli(), #[cfg(feature = "scroll")] PrecompileSpecId::BERNOULLI => Self::bernoulli(), - #[cfg(feature = "scroll")] - PrecompileSpecId::EUCLID => Self::euclid(), PrecompileSpecId::CANCUN => Self::cancun(), PrecompileSpecId::PRAGUE => Self::prague(), PrecompileSpecId::LATEST => Self::latest(), @@ -220,19 +218,6 @@ impl Precompiles { }) } - /// Returns precompiles for Scroll - #[cfg(feature = "scroll")] - pub fn euclid() -> &'static Self { - static INSTANCE: OnceBox = OnceBox::new(); - INSTANCE.get_or_init(|| { - let mut precompiles = Self::bernoulli().clone(); - precompiles.extend([ - secp256r1::P256VERIFY, // 0x100 - ]); - Box::new(precompiles) - }) - } - /// Returns the precompiles for the latest spec. pub fn latest() -> &'static Self { Self::prague() @@ -334,8 +319,6 @@ pub enum PrecompileSpecId { PRE_BERNOULLI, #[cfg(feature = "scroll")] BERNOULLI, - #[cfg(feature = "scroll")] - EUCLID, CANCUN, PRAGUE, LATEST, @@ -362,9 +345,7 @@ impl PrecompileSpecId { #[cfg(feature = "scroll")] PRE_BERNOULLI => Self::PRE_BERNOULLI, #[cfg(feature = "scroll")] - BERNOULLI | CURIE => Self::BERNOULLI, - #[cfg(feature = "scroll")] - EUCLID => Self::EUCLID, + BERNOULLI | CURIE | EUCLID => Self::BERNOULLI, } } }