From e4bf75d62e36077fb3904c400332da0376c03383 Mon Sep 17 00:00:00 2001 From: yutianwu Date: Mon, 8 Jul 2024 10:11:56 +0800 Subject: [PATCH] fix: fix the hardforks' order (#43) --- crates/primitives/src/specification.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/primitives/src/specification.rs b/crates/primitives/src/specification.rs index 4b21d2c7..14b73641 100644 --- a/crates/primitives/src/specification.rs +++ b/crates/primitives/src/specification.rs @@ -68,10 +68,10 @@ pub enum SpecId { CANYON = 20, CANCUN = 21, ECOTONE = 22, - FJORD = 23, - PRAGUE = 24, - PRAGUE_EOF = 25, - HABER = 26, + HABER = 23, + FJORD = 24, + PRAGUE = 25, + PRAGUE_EOF = 26, #[default] LATEST = u8::MAX, } @@ -527,10 +527,6 @@ macro_rules! spec_to_generic { use $crate::EcotoneSpec as SPEC; $e } - $crate::SpecId::FJORD => { - use $crate::FjordSpec as SPEC; - $e - } #[cfg(feature = "opbnb")] $crate::SpecId::FERMAT => { use $crate::FermatSpec as SPEC; @@ -541,6 +537,10 @@ macro_rules! spec_to_generic { use $crate::HaberSpec as SPEC; $e } + $crate::SpecId::FJORD => { + use $crate::FjordSpec as SPEC; + $e + } } }}; }