-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
declare_program!()
macro not supported for previous version IDLs
#2972
Labels
Comments
Yes, I'll add a utility to convert an old IDL to a new one, and this will be supported by default with |
awesome, that sounds great |
This was referenced May 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The macro attempts to parse the
Idl
type usingserde_json
, but complains about mandatorydiscriminator
field for IDLs generated before anchor 0.30Example IDL that does not work with this macro: https://github.com/drift-labs/protocol-v2/blob/master/sdk/src/idl/drift.json
I wonder if it would be sensible to have the option to make backwards incompatible fields such as
discriminator
Option<>, or if there is a way of migrating old IDL JSON files to the new format (as a client, who does not have access to the project)The text was updated successfully, but these errors were encountered: