From adabd5617ffbe411a16afaaa870934b5c28bbc22 Mon Sep 17 00:00:00 2001 From: Alex Sedighi Date: Fri, 30 Aug 2024 17:15:02 +1200 Subject: [PATCH] fix: metadata hash singed extra (#877) --- runtimes/eden/build.rs | 15 ++++++++++----- runtimes/eden/src/version.rs | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/runtimes/eden/build.rs b/runtimes/eden/build.rs index b8a0d03cd46..cfae49ed539 100644 --- a/runtimes/eden/build.rs +++ b/runtimes/eden/build.rs @@ -16,12 +16,17 @@ * along with this program. If not, see . */ -use substrate_wasm_builder::WasmBuilder; +#[cfg(all(feature = "std", not(feature = "metadata-hash")))] +fn main() { + substrate_wasm_builder::WasmBuilder::build_using_defaults() +} +#[cfg(all(feature = "std", feature = "metadata-hash"))] fn main() { - WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() + substrate_wasm_builder::WasmBuilder::init_with_defaults() + .enable_metadata_hash("NODL", 11) .build() } + +#[cfg(not(feature = "std"))] +fn main() {} diff --git a/runtimes/eden/src/version.rs b/runtimes/eden/src/version.rs index aa485caa881..bfd6b3a6cc1 100644 --- a/runtimes/eden/src/version.rs +++ b/runtimes/eden/src/version.rs @@ -40,7 +40,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // Version of the runtime specification. A full-node will not attempt to use its native // runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, // `spec_version` and `authoring_version` are the same between Wasm and native. - spec_version: 30, + spec_version: 31, // Version of the implementation of the specification. Nodes are free to ignore this; it // serves only as an indication that the code is different; as long as the other two versions @@ -51,7 +51,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { impl_version: 0, // Used for hardware wallets. This typically happens when `SignedExtra` changes. - transaction_version: 11, + transaction_version: 12, apis: RUNTIME_API_VERSIONS, state_version: 0,