Fix the wasm runtime substitute caching bug (#1416)

This commit is contained in:
Cem Eliguzel authored and GitHub committed 2023-09-06 13:02:33 +03:00
1 parent cd901764a5
commit dc28df0b27
1 file changed
+1 -1
@@ -126,7 +126,7 @@ where
let runtime_code = RuntimeCode {
code_fetcher: &WrappedRuntimeCode((&code).into()),
heap_pages: None,
hash: Vec::new(),
hash: make_hash(&code),
};
let version = Self::runtime_version(&executor, &runtime_code)?;
let spec_version = version.spec_version;