use WasmExecutionMethod::default() (#2622)

This commit is contained in:
yjh
2023-05-23 22:19:15 +08:00
committed by GitHub
parent 5fcf9cecbe
commit 87a72158b7
+1 -1
View File
@@ -183,7 +183,7 @@ pub fn validate_block(
let heap_pages = HeapAllocStrategy::Static { extra_pages: 1024 };
let executor = WasmExecutor::<sp_io::SubstrateHostFunctions>::builder()
.with_execution_method(WasmExecutionMethod::Interpreted)
.with_execution_method(WasmExecutionMethod::default())
.with_max_runtime_instances(1)
.with_runtime_cache_size(2)
.with_onchain_heap_alloc_strategy(heap_pages)