-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Discriminator trait of CoreAsset and CoreCollection for Anchor 0.30.0 #151
Comments
Hey @alphafitz11, thanks for calling this out. Right now Core isn't supported as an explicit account in the Accounts structure. This is because of the way it's composed of a set of base data and a collection of plugins, with most users only needing to read a subset. However integrating this into the Anchor Accounts is something we're actively working on. Right now the recommended way to work with Core in Anchor is to treat it as an UncheckedAccount and deserialize it within the instruction. |
Anchor 0.30.0 require CoreAsset and CoreCollection to implement the Discriminator trait to build IDL.
When using anchor 0.30.0, compiling IDL will encounter the following errors:
The text was updated successfully, but these errors were encountered: