From 21ba4ee6d184b0606f21da519bd13bed727ed21d Mon Sep 17 00:00:00 2001 From: Roznovjak Date: Thu, 25 Jul 2024 15:38:33 +0200 Subject: [PATCH] fix metadata-hash feature --- Cargo.lock | 2 +- runtime/hydradx/Cargo.toml | 3 +-- runtime/hydradx/build.rs | 4 ++-- runtime/hydradx/src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f6be7d76e..a667f8fe8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4938,7 +4938,7 @@ dependencies = [ [[package]] name = "hydradx-runtime" -version = "249.0.0" +version = "253.0.0" dependencies = [ "cumulus-pallet-aura-ext", "cumulus-pallet-parachain-system", diff --git a/runtime/hydradx/Cargo.toml b/runtime/hydradx/Cargo.toml index eeafc0f93..695fa4991 100644 --- a/runtime/hydradx/Cargo.toml +++ b/runtime/hydradx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hydradx-runtime" -version = "249.0.0" +version = "253.0.0" authors = ["GalacticCouncil"] edition = "2021" license = "Apache 2.0" @@ -398,5 +398,4 @@ try-runtime = [ metadata-hash = [ "substrate-wasm-builder/metadata-hash", - "sp-api/disable-logging", ] diff --git a/runtime/hydradx/build.rs b/runtime/hydradx/build.rs index fc9df33bb..641960547 100644 --- a/runtime/hydradx/build.rs +++ b/runtime/hydradx/build.rs @@ -1,11 +1,11 @@ -#[cfg(all(feature = "std", feature = "release-build"))] +#[cfg(all(feature = "std", feature = "metadata-hash"))] fn main() { substrate_wasm_builder::WasmBuilder::init_with_defaults() .enable_metadata_hash("HDX", 12) .build(); } -#[cfg(all(feature = "std", not(feature = "release-build")))] +#[cfg(all(feature = "std", not(feature = "metadata-hash")))] fn main() { substrate_wasm_builder::WasmBuilder::build_using_defaults(); } diff --git a/runtime/hydradx/src/lib.rs b/runtime/hydradx/src/lib.rs index a1c2b9bf0..650732d7d 100644 --- a/runtime/hydradx/src/lib.rs +++ b/runtime/hydradx/src/lib.rs @@ -113,7 +113,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("hydradx"), impl_name: create_runtime_str!("hydradx"), authoring_version: 1, - spec_version: 249, + spec_version: 253, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1,