Skip to content

Commit

Permalink
Revert "change to state_version 0"
Browse files Browse the repository at this point in the history
This reverts commit dffb686.
  • Loading branch information
TarekkMA committed Aug 28, 2024
1 parent dffb686 commit e15dd50
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ 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")]
#[cfg(feature = "runtime-benchmarks")]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("moonbase"),
Expand All @@ -203,20 +203,20 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
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"),
// impl_name: create_runtime_str!("moonbase"),
// authoring_version: 4,
// spec_version: 3200,
// impl_version: 0,
// apis: RUNTIME_API_VERSIONS,
// transaction_version: 2,
// state_version: 1,
// };
/// 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"),
impl_name: create_runtime_str!("moonbase"),
authoring_version: 4,
spec_version: 3200,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
state_version: 1,
};

/// The version information used to identify this runtime when compiled natively.
#[cfg(feature = "std")]
Expand Down

0 comments on commit e15dd50

Please sign in to comment.