diff --git a/crates/precompile/src/lib.rs b/crates/precompile/src/lib.rs index aa3e1566..d7e8d586 100644 --- a/crates/precompile/src/lib.rs +++ b/crates/precompile/src/lib.rs @@ -77,8 +77,8 @@ impl Precompiles { PrecompileSpecId::HERTZ => Self::hertz(), PrecompileSpecId::FEYNMAN => Self::feynman(), PrecompileSpecId::CANCUN => Self::cancun(), - PrecompileSpecId::PRAGUE => Self::prague(), PrecompileSpecId::HABER => Self::haber(), + PrecompileSpecId::PRAGUE => Self::prague(), PrecompileSpecId::LATEST => Self::latest(), } } @@ -308,6 +308,9 @@ impl Precompiles { pub fn prague() -> &'static Self { static INSTANCE: OnceBox = OnceBox::new(); INSTANCE.get_or_init(|| { + #[cfg(feature = "bsc")] + let precompiles = Self::haber().clone(); + #[cfg(not(feature = "bsc"))] let precompiles = Self::cancun().clone(); // Don't include BLS12-381 precompiles in no_std builds. diff --git a/crates/primitives/src/specification.rs b/crates/primitives/src/specification.rs index 3553174b..0ea958fc 100644 --- a/crates/primitives/src/specification.rs +++ b/crates/primitives/src/specification.rs @@ -118,14 +118,14 @@ pub enum SpecId { HABER = 30, // Haber timestamp(1718863500) HABER_FIX = 31, // HaberFix timestamp(1720591588) BOHR = 32, // Bohr timestamp(1720591588) + PRAGUE = 33, // Prague TBD /// Not enabled in bsc DAO_FORK = 100, ARROW_GLACIER = 101, GRAY_GLACIER = 102, MERGE = 103, - PRAGUE = 104, - OSAKA = 106, + OSAKA = 104, #[default] LATEST = u8::MAX, }