Colon always denotes a type annotation in Motoko. For
defining the fields in an object literal you want to use =
, as in {owner = caller}
.
3 Likes
Colon always denotes a type annotation in Motoko. For
defining the fields in an object literal you want to use =
, as in {owner = caller}
.