You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we try to derive InitSpace on a tuple struct, it will fail with the error Please use named fields in account structure. This is annoying, but the fact that the code seems to intentionally reject this case makes me wonder if there's a reason behind intentionally not supporting this?
Is there one or would you be open to a PR fixing this @acheroncrypto?
The text was updated successfully, but these errors were encountered:
This is annoying, but the fact that the code seems to intentionally reject this case makes me wonder if there's a reason behind intentionally not supporting this?
It was intentional because Anchor did not support tuple structs during that time. It was added in v0.30 (#2824).
Is there one or would you be open to a PR fixing this @acheroncrypto?
I don't see any reason to not support this, go ahead.
If we try to derive
InitSpace
on a tuple struct, it will fail with the errorPlease use named fields in account structure
. This is annoying, but the fact that the code seems to intentionally reject this case makes me wonder if there's a reason behind intentionally not supporting this?Is there one or would you be open to a PR fixing this @acheroncrypto?
The text was updated successfully, but these errors were encountered: