From 7ebae6fa9e304d0077ed287b2fcaf08de252ec25 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Mon, 3 May 2021 15:45:46 -0400 Subject: [PATCH] Bump Substrate WASM builder (#947) --- bridges/bin/millau/node/src/chain_spec.rs | 2 +- bridges/bin/millau/runtime/Cargo.toml | 2 +- bridges/bin/millau/runtime/build.rs | 5 ++--- bridges/bin/rialto/node/src/chain_spec.rs | 2 +- bridges/bin/rialto/runtime/Cargo.toml | 2 +- bridges/bin/rialto/runtime/build.rs | 5 ++--- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/bridges/bin/millau/node/src/chain_spec.rs b/bridges/bin/millau/node/src/chain_spec.rs index e36a12d974..aef01737fb 100644 --- a/bridges/bin/millau/node/src/chain_spec.rs +++ b/bridges/bin/millau/node/src/chain_spec.rs @@ -176,7 +176,7 @@ fn testnet_genesis( ) -> GenesisConfig { GenesisConfig { frame_system: SystemConfig { - code: WASM_BINARY.to_vec(), + code: WASM_BINARY.expect("Millau development WASM not available").to_vec(), changes_trie_config: Default::default(), }, pallet_balances: BalancesConfig { diff --git a/bridges/bin/millau/runtime/Cargo.toml b/bridges/bin/millau/runtime/Cargo.toml index e1f7ed10c6..240b079d11 100644 --- a/bridges/bin/millau/runtime/Cargo.toml +++ b/bridges/bin/millau/runtime/Cargo.toml @@ -56,7 +56,7 @@ sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" , sp-version = { git = "https://github.com/paritytech/substrate", branch = "master" , default-features = false } [build-dependencies] -wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "2.0.0" } +substrate-wasm-builder = "3.0.0" [features] default = ["std"] diff --git a/bridges/bin/millau/runtime/build.rs b/bridges/bin/millau/runtime/build.rs index dcb5cb0621..cc86570432 100644 --- a/bridges/bin/millau/runtime/build.rs +++ b/bridges/bin/millau/runtime/build.rs @@ -14,13 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . -use wasm_builder_runner::WasmBuilder; +use substrate_wasm_builder::WasmBuilder; fn main() { WasmBuilder::new() .with_current_project() - .with_wasm_builder_from_crates("1.0.11") - .export_heap_base() .import_memory() + .export_heap_base() .build() } diff --git a/bridges/bin/rialto/node/src/chain_spec.rs b/bridges/bin/rialto/node/src/chain_spec.rs index 85dd37f56d..27a7518924 100644 --- a/bridges/bin/rialto/node/src/chain_spec.rs +++ b/bridges/bin/rialto/node/src/chain_spec.rs @@ -177,7 +177,7 @@ fn testnet_genesis( ) -> GenesisConfig { GenesisConfig { frame_system: SystemConfig { - code: WASM_BINARY.to_vec(), + code: WASM_BINARY.expect("Rialto development WASM not available").to_vec(), changes_trie_config: Default::default(), }, pallet_balances: BalancesConfig { diff --git a/bridges/bin/rialto/runtime/Cargo.toml b/bridges/bin/rialto/runtime/Cargo.toml index ea8c51d0e8..63a48a255b 100644 --- a/bridges/bin/rialto/runtime/Cargo.toml +++ b/bridges/bin/rialto/runtime/Cargo.toml @@ -68,7 +68,7 @@ sp-version = { git = "https://github.com/paritytech/substrate", branch = "master libsecp256k1 = { version = "0.3.4", features = ["hmac"] } [build-dependencies] -wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "2.0.0" } +substrate-wasm-builder = "3.0.0" [features] default = ["std"] diff --git a/bridges/bin/rialto/runtime/build.rs b/bridges/bin/rialto/runtime/build.rs index dcb5cb0621..cc86570432 100644 --- a/bridges/bin/rialto/runtime/build.rs +++ b/bridges/bin/rialto/runtime/build.rs @@ -14,13 +14,12 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . -use wasm_builder_runner::WasmBuilder; +use substrate_wasm_builder::WasmBuilder; fn main() { WasmBuilder::new() .with_current_project() - .with_wasm_builder_from_crates("1.0.11") - .export_heap_base() .import_memory() + .export_heap_base() .build() }