diff --git a/runtime/moonbase/src/lib.rs b/runtime/moonbase/src/lib.rs index be2fd23073..1bde9fc65d 100644 --- a/runtime/moonbase/src/lib.rs +++ b/runtime/moonbase/src/lib.rs @@ -190,22 +190,6 @@ pub mod opaque { /// The spec_version is composed of 2x2 digits. The first 2 digits represent major changes /// that can't be skipped, such as data migration upgrades. The last 2 digits represent minor /// changes which can be skipped. -#[cfg(feature = "runtime-benchmarks")] -#[sp_version::runtime_version] -pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("moonbase"), - impl_name: create_runtime_str!("moonbase"), - authoring_version: 4, - spec_version: 3400, - impl_version: 0, - apis: RUNTIME_API_VERSIONS, - transaction_version: 3, - state_version: 0, -}; - -/// We need to duplicate this because the `runtime_version` macro is conflicting with the -/// conditional compilation at the state_version field. -#[cfg(not(feature = "runtime-benchmarks"))] #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("moonbase"), diff --git a/runtime/moonbeam/src/lib.rs b/runtime/moonbeam/src/lib.rs index af75bb810c..77324dfbe0 100644 --- a/runtime/moonbeam/src/lib.rs +++ b/runtime/moonbeam/src/lib.rs @@ -187,22 +187,6 @@ pub mod opaque { /// The spec_version is composed of 2x2 digits. The first 2 digits represent major changes /// that can't be skipped, such as data migration upgrades. The last 2 digits represent minor /// changes which can be skipped. -#[cfg(feature = "runtime-benchmarks")] -#[sp_version::runtime_version] -pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("moonbeam"), - impl_name: create_runtime_str!("moonbeam"), - authoring_version: 3, - spec_version: 3400, - impl_version: 0, - apis: RUNTIME_API_VERSIONS, - transaction_version: 3, - state_version: 0, -}; - -/// We need to duplicate this because the `runtime_version` macro is conflicting with the -/// conditional compilation at the state_version field. -#[cfg(not(feature = "runtime-benchmarks"))] #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("moonbeam"), diff --git a/runtime/moonriver/src/lib.rs b/runtime/moonriver/src/lib.rs index 29842426cc..6f3fbe1df9 100644 --- a/runtime/moonriver/src/lib.rs +++ b/runtime/moonriver/src/lib.rs @@ -189,22 +189,6 @@ pub mod opaque { /// The spec_version is composed of 2x2 digits. The first 2 digits represent major changes /// that can't be skipped, such as data migration upgrades. The last 2 digits represent minor /// changes which can be skipped. -#[cfg(feature = "runtime-benchmarks")] -#[sp_version::runtime_version] -pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("moonriver"), - impl_name: create_runtime_str!("moonriver"), - authoring_version: 3, - spec_version: 3400, - impl_version: 0, - apis: RUNTIME_API_VERSIONS, - transaction_version: 3, - state_version: 0, -}; - -/// We need to duplicate this because the `runtime_version` macro is conflicting with the -/// conditional compilation at the state_version field. -#[cfg(not(feature = "runtime-benchmarks"))] #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("moonriver"),