From 57ab072aff4eeea4193a2e42d3b602693c684ff8 Mon Sep 17 00:00:00 2001 From: Santiago Balaguer Date: Tue, 2 Jul 2024 13:29:55 +0200 Subject: [PATCH] change build.rs on people kusama --- system-parachains/people/people-kusama/build.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/system-parachains/people/people-kusama/build.rs b/system-parachains/people/people-kusama/build.rs index 60f8a12512..03ff62b9e1 100644 --- a/system-parachains/people/people-kusama/build.rs +++ b/system-parachains/people/people-kusama/build.rs @@ -13,14 +13,17 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[cfg(feature = "std")] +#[cfg(all(feature = "std", not(feature = "metadata-hash")))] fn main() { - substrate_wasm_builder::WasmBuilder::new() - .with_current_project() - .export_heap_base() - .import_memory() + substrate_wasm_builder::WasmBuilder::build_using_defaults() +} + +#[cfg(all(feature = "std", feature = "metadata-hash"))] +fn main() { + substrate_wasm_builder::WasmBuilder::init_with_defaults() + .enable_metadata_hash("KSM", 12) .build() } #[cfg(not(feature = "std"))] -fn main() {} +fn main() {} \ No newline at end of file