uptest-sc / uptest

"curl" for substrate runtime upgrade testing
7 stars 4 forks source link

read wasm binary function not properly working #71

Closed flipchan closed 12 months ago

flipchan commented 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(
flipchan commented 12 months ago

fixed: https://github.com/uptest-sc/submit-runtime-upgrade/blob/main/src/main.rs#L23