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 I make an #[account] struct called RNGEvent, and then use program.account to fetch it, I get an invalid account discriminator error. If I rename the struct to Cum or RngEvent it works fine.
I am guessing this is to do with the consecutive capital letters in "RNGEvent" though I have not tested this.
This issue appears both in anchor-ts and anchor-client-gen.
The text was updated successfully, but these errors were encountered:
Just dealt with this issue, it was a pain to debug, from my experimenting, any struct you name with more than 2 uppercase letters will not work and will give you the error invalid account discriminator. This seems to be new, because the candy machine program itself uses an CollectionPDA struct, and it works fine (was compiled with older version of anchor, 0.21.0 i think).
If I make an
#[account]
struct calledRNGEvent
, and then useprogram.account
to fetch it, I get an invalid account discriminator error. If I rename the struct toCum
orRngEvent
it works fine.I am guessing this is to do with the consecutive capital letters in "RNGEvent" though I have not tested this.
This issue appears both in anchor-ts and anchor-client-gen.
The text was updated successfully, but these errors were encountered: