diff --git a/examples/ipfs_node/src/node/ipfs_node.rs b/examples/ipfs_node/src/node/ipfs_node.rs index 86da79ce..1dfcdb98 100644 --- a/examples/ipfs_node/src/node/ipfs_node.rs +++ b/examples/ipfs_node/src/node/ipfs_node.rs @@ -94,6 +94,17 @@ impl crate::node_wasm_service::NodeWasmService for IpfsNode { Ok(call_result) } + fn core_call( + &mut self, + module_name: &str, + func_name: &str, + args: &[IValue], + ) -> Result, NodeError> { + self.process + .call(module_name, func_name, args) + .map_err(Into::into) + } + fn get_interface(&self) -> NodePublicInterface { let mut modules = Vec::with_capacity(self.module_names.len()); diff --git a/examples/ipfs_node/src/node_wasm_service.rs b/examples/ipfs_node/src/node_wasm_service.rs index e5dc1bcf..d55402cf 100644 --- a/examples/ipfs_node/src/node_wasm_service.rs +++ b/examples/ipfs_node/src/node_wasm_service.rs @@ -27,5 +27,12 @@ pub trait NodeWasmService { args: &[IValue], ) -> Result, NodeError>; + fn core_call( + &mut self, + module_name: &str, + func_name: &str, + args: &[IValue], + ) -> Result, NodeError>; + fn get_interface(&self) -> NodePublicInterface; }