diff --git a/ownership-chain/runtime/src/lib.rs b/ownership-chain/runtime/src/lib.rs index dd6f23199..c70b11060 100644 --- a/ownership-chain/runtime/src/lib.rs +++ b/ownership-chain/runtime/src/lib.rs @@ -224,11 +224,10 @@ impl_opaque_keys! { } } +#[cfg(feature = "try-runtime")] #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { - /// Uncomment this to make it work with polkadot-js/apps - spec_name: create_runtime_str!("frontier-template"), - // spec_name: create_runtime_str!("laos-parachain"), + spec_name: create_runtime_str!("laos-parachain"), impl_name: create_runtime_str!("laos-parachain"), authoring_version: 1, spec_version: 7, @@ -238,6 +237,19 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { state_version: 1, }; +#[cfg(not(feature = "try-runtime"))] +#[sp_version::runtime_version] +pub const VERSION: RuntimeVersion = RuntimeVersion { + spec_name: create_runtime_str!("frontier-template"), + impl_name: create_runtime_str!("frontier-template"), + authoring_version: 1, + spec_version: 7, + impl_version: 0, + apis: RUNTIME_API_VERSIONS, + transaction_version: 1, + state_version: 1, +}; + /// This determines the average expected block time that we are targeting. /// Blocks will be produced at a minimum duration defined by `SLOT_DURATION`. /// `SLOT_DURATION` is picked up by `pallet_timestamp` which is in turn picked