SimpleMap in move #176
-
Describe your question in detail.Is there anyway to pass a variable type SimpleMap to a function. I can't do that but i saw an old source code that still can do that. What error, if any, are you getting?type What have you tried or looked at? Or how can we reproduce the error?I try to compile my code and face with the above error. You can reproduce the error by compile a smart contract that have a function with parameter type SimpleMap Which operating system are you using?Windows Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It might be because you're using an entry function. Entry functions cannot take structs as params, only primitive types (and special cases like Refer to the docs on entry functions for more information. |
Beta Was this translation helpful? Give feedback.
It might be because you're using an entry function. Entry functions cannot take structs as params, only primitive types (and special cases like
Object
andString
).SimpleMap
is a struct.Refer to the docs on entry functions for more information.