MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / call_method

Method call_method

ext/frc42_dispatch/src/message.rs:41–58  ·  view source on GitHub ↗
(
        &self,
        to: &Address,
        method: &str,
        params: Option<IpldBlock>,
        value: TokenAmount,
    )

Source from the content-addressed store, hash-verified

39 /// on-chain message.
40 #[cfg(feature = "use_sdk")]
41 pub fn call_method(
42 &self,
43 to: &Address,
44 method: &str,
45 params: Option<IpldBlock>,
46 value: TokenAmount,
47 ) -> Result<Response, MethodMessengerError> {
48 let method = self.method_resolver.method_number(method)?;
49 send::send(
50 to,
51 method,
52 params,
53 value,
54 None,
55 fvm_shared::sys::SendFlags::empty(),
56 )
57 .map_err(MethodMessengerError::from)
58 }
59
60 #[cfg(not(feature = "use_sdk"))]
61 #[allow(unused_variables)]

Callers

nothing calls this directly

Calls 1

method_numberMethod · 0.80

Tested by

no test coverage detected