Dfx canister --network=ic call canisterId method_name '(1, 2)' throw a type error

when i call a ic method, passed two Nat parameters like ‘(1, 2)’.The error message is:
The Replica returned an error: code 5, message: “Canister trapped explicitly: IDL error: unexpected IDL type when parsing Nat”

try using '(1:nat, 2:nat)'

2 Likes