Skip to content

Commit

Permalink
fix: metadata hash singed extra (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliXsed authored Aug 30, 2024
1 parent 7e5aadc commit adabd56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions runtimes/eden/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

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() {}
4 changes: 2 additions & 2 deletions runtimes/eden/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit adabd56

Please sign in to comment.