Skip to content

Commit dc28df0

Browse files
author
Cem Eliguzel
authored
Fix the wasm runtime substitute caching bug (#1416)
1 parent cd90176 commit dc28df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substrate/client/service/src/client/wasm_substitutes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ where
126126
let runtime_code = RuntimeCode {
127127
code_fetcher: &WrappedRuntimeCode((&code).into()),
128128
heap_pages: None,
129-
hash: Vec::new(),
129+
hash: make_hash(&code),
130130
};
131131
let version = Self::runtime_version(&executor, &runtime_code)?;
132132
let spec_version = version.spec_version;

0 commit comments

Comments
 (0)