Inter canister update call

I do the following in Motoko, how can I do that in Rust?

let bucket = actor (Principal.toText(canisterId)) : actor {
  my_function : () -> async ();
};

await bucket.my_function();

Ah probably call in ic_cdk::api::call - Rust

Now let’s find an example…

That should do

let result: CallResult<(ResultTypeHere,)> =
        call(Principal::from_text("canister-id-here").unwrap(), "function_name_here", ()).await;
3 Likes