Hi,
Let’s say that I have an endpoint whose interface is declared in a Candid file as:
service : {
foobar : () -> (text);
}
Where the Rust implementation is:
#[update]
#[candid_method(update)]
async fn foobar() -> String {
"Hello".into()
}
Which after deploying a DFX Canister call to the endpoint outputs “Hello”, as expected:
> dfx canister call <Foobar Canister Id> foobar "()"
("Hello")
Although, when called via Motoko, returns “()”:
let result = await service.foobar();
Debug.print(debug_show(result));
What would cause this issue?