Skip to content

Commit

Permalink
Merge pull request #877 from galacticcouncil/fix_metadata_hash_feature
Browse files Browse the repository at this point in the history
fix: metadata-hash build
  • Loading branch information
mrq1911 authored Jul 25, 2024
2 parents 261915c + 21ba4ee commit 6173aa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions runtime/hydradx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hydradx-runtime"
version = "249.0.0"
version = "253.0.0"
authors = ["GalacticCouncil"]
edition = "2021"
license = "Apache 2.0"
Expand Down Expand Up @@ -398,5 +398,4 @@ try-runtime = [

metadata-hash = [
"substrate-wasm-builder/metadata-hash",
"sp-api/disable-logging",
]
4 changes: 2 additions & 2 deletions runtime/hydradx/build.rs
Original file line number Diff line number Diff line change
@@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/hydradx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6173aa4

Please sign in to comment.