Implement CheckedMetadataHashExtension (#211)

This commit is contained in:
Amar Singh
2024-10-28 13:59:30 -04:00
committed by GitHub
parent 46a9a3f4e8
commit 3df636d524
8 changed files with 28 additions and 14 deletions
+9 -6
View File
@@ -1,10 +1,13 @@
#[cfg(feature = "std")]
#[cfg(all(not(feature = "metadata-hash"), feature = "std"))]
fn main() {
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
substrate_wasm_builder::WasmBuilder::build_using_defaults();
}
#[cfg(all(feature = "metadata-hash", feature = "std"))]
fn main() {
substrate_wasm_builder::WasmBuilder::init_with_defaults()
.enable_metadata_hash("UNIT", 12)
.build();
}
/// The wasm builder is deactivated when compiling