Skip to content

Commit

Permalink
fix: fix system.setCode for compressed runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jul 22, 2021
1 parent a4da670 commit c1b4ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/wasm-testbed/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl WasmTestBed {

/// Compute the proposal hash of the runtime
pub fn proposal_hash(&self) -> String {
let result: SrhResult = get_result(substrate_runtime_proposal_hash::PREFIX_SYSTEM_SETCODE, &self.wasm);
let result: SrhResult = get_result(substrate_runtime_proposal_hash::PREFIX_SYSTEM_SETCODE, &self.bytes);
format!("0x{}", &result.encodedd_hash)
}

Expand Down

0 comments on commit c1b4ab6

Please sign in to comment.