Replies: 2 comments 1 reply
-
You're referring to passing T as a param? From what I can tell this compiles but will give a runtime error if T is a custom struct. Probably, it's the case that custom types can compile because the compiler doesn't enforce runtime execution checks around external transaction signing, serialization, and deserialization for complex custom types. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also, in the future, could you pls change the categories of questions you're posting to "Questions"? Really appreciate, thx 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While I've seen at a bunch of places that entry functions support only native types, aptos compiler allows for having custom structs in entry functions too. Is this a missed check in the compiler?
for example, i'm able to create a function like this:
It lets me compile, and deploy this function, and also use it in move scripts, but there's no support in aptos-sdk to call this function. So it this allowed or not?
I've already seen a few discussions/comments that custom structs are not supported. My question is - why does the compiler allow for it?
Beta Was this translation helpful? Give feedback.
All reactions