Fix the wasm runtime substitute caching bug (#1416)

This commit is contained in:
Cem Eliguzel
2023-09-06 13:02:33 +03:00
committed by GitHub
parent cd901764a5
commit dc28df0b27
@@ -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;