Closed flipchan closed 12 months ago
let WASM_BINARY: Option<&[u8]> = Some(include_bytes!("/tmp/substrate-node-template/target/release/wbuild/node-template-runtime/node_template_runtime.compact.compressed.wasm")); let code: Vec<u8> = vec![read_wasm_binary(wasm_path).await.unwrap()]; let call = nodetemplate::runtime_types::node_template_runtime::RuntimeCall::System(SystemCall::set_code { code: WASM_BINARY.expect("could not decode wasm binary").into() }); //Call::System(
fixed: https://github.com/uptest-sc/submit-runtime-upgrade/blob/main/src/main.rs#L23