Skip to content

Commit

Permalink
add host function
Browse files Browse the repository at this point in the history
  • Loading branch information
enddynayn committed Jul 26, 2024
1 parent 6d6a661 commit e9f33c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/service/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ pub mod frequency_executor {

impl sc_executor::NativeExecutionDispatch for FrequencyExecutorDispatch {
#[cfg(feature = "runtime-benchmarks")]
type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
type ExtendHostFunctions = (frame_benchmarking::benchmarking::HostFunctions, cumulus_client_service::storage_proof_size::HostFunctions);

#[cfg(not(feature = "runtime-benchmarks"))]
type ExtendHostFunctions = ();
type ExtendHostFunctions = cumulus_client_service::storage_proof_size::HostFunctions;

fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
frequency_runtime::api::dispatch(method, data)
Expand Down

0 comments on commit e9f33c4

Please sign in to comment.