executor: Move runtime version caching out of WasmRuntime interface. (#3993)

* executor: Move runtime caching out of WasmRuntime interface.

The runtime version is now fetched and cached at a higher level, not
within the WasmRuntime trait implementations.

* executor: Require successful querying of runtime version.
This commit is contained in:
Jim Posen
2019-11-01 18:22:28 +01:00
committed by GitHub
parent 6193481352
commit 8fe64173e8
5 changed files with 57 additions and 98 deletions
-1
View File
@@ -73,7 +73,6 @@ pub fn call_in_wasm<E: Externalities>(
heap_pages: u64,
) -> error::Result<Vec<u8>> {
let mut instance = wasm_runtime::create_wasm_runtime_with_code(
ext,
execution_method,
heap_pages,
code,