(
&self,
to: &Address,
method: &str,
params: Option<IpldBlock>,
value: TokenAmount,
)
| 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)] |
nothing calls this directly
no test coverage detected