diff --git a/runtime/devnet/build.rs b/runtime/devnet/build.rs index 9fc445de..287f2a61 100644 --- a/runtime/devnet/build.rs +++ b/runtime/devnet/build.rs @@ -1,20 +1,13 @@ #[cfg(all(feature = "std", feature = "metadata-hash"))] fn main() { - substrate_wasm_builder::WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() + substrate_wasm_builder::WasmBuilder::init_with_defaults() .enable_metadata_hash("UNIT", 12) .build() } #[cfg(all(feature = "std", not(feature = "metadata-hash")))] fn main() { - substrate_wasm_builder::WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() - .build() + substrate_wasm_builder::WasmBuilder::build_using_defaults() } /// The wasm builder is deactivated when compiling diff --git a/runtime/testnet/build.rs b/runtime/testnet/build.rs index 9fc445de..287f2a61 100644 --- a/runtime/testnet/build.rs +++ b/runtime/testnet/build.rs @@ -1,20 +1,13 @@ #[cfg(all(feature = "std", feature = "metadata-hash"))] fn main() { - substrate_wasm_builder::WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() + substrate_wasm_builder::WasmBuilder::init_with_defaults() .enable_metadata_hash("UNIT", 12) .build() } #[cfg(all(feature = "std", not(feature = "metadata-hash")))] fn main() { - substrate_wasm_builder::WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() - .build() + substrate_wasm_builder::WasmBuilder::build_using_defaults() } /// The wasm builder is deactivated when compiling