How to call List type #83
-
How to call List type guys? dfx canister call day_4 push_animal '(vec {"tiger"; 95})' but it not worked |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks to phaniel1111 for the solution. dfx canister call day_4 push_animal '(record {specie = "tiger"; energy = 95})' |
Beta Was this translation helpful? Give feedback.
-
Here is how you call it |
Beta Was this translation helpful? Give feedback.
Here is how you call it
dfx canister call day_4 push_animal '(record {specie = "tiger"; energy = 95})'