From 060d94005368b03f0d5a7c7986fb75cce645f4ba Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 14 Mar 2022 11:21:46 +0000 Subject: [PATCH] Fix NativeExecutionDispatches --- --- a/node/cli/src/service.rs +++ b/node/cli/src/service.rs @@ -69,6 +69,7 @@ pub struct QuartzRuntimeExecutor; pub struct OpalRuntimeExecutor; +#[cfg(feature = "unique-runtime")] impl NativeExecutionDispatch for UniqueRuntimeExecutor { type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; @@ -81,27 +82,29 @@ } } +#[cfg(feature = "quartz-runtime")] impl NativeExecutionDispatch for QuartzRuntimeExecutor { type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; fn dispatch(method: &str, data: &[u8]) -> Option> { - unique_runtime::api::dispatch(method, data) + quartz_runtime::api::dispatch(method, data) } fn native_version() -> sc_executor::NativeVersion { - unique_runtime::native_version() + quartz_runtime::native_version() } } +#[cfg(feature = "opal-runtime")] impl NativeExecutionDispatch for OpalRuntimeExecutor { type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions; fn dispatch(method: &str, data: &[u8]) -> Option> { - unique_runtime::api::dispatch(method, data) + opal_runtime::api::dispatch(method, data) } fn native_version() -> sc_executor::NativeVersion { - unique_runtime::native_version() + opal_runtime::native_version() } } -- gitstuff