use WasmExecutionMethod::default() (#2622)

This commit is contained in:
yjh authored and GitHub committed 2023-05-23 16:19:15 +02:00
1 parent ca5b329a0a
commit fab8d1f474
1 file changed
+1 -1
+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)