declare_program!()
macro not supported for previous version IDLs
#2972
Labels
declare_program!()
macro not supported for previous version IDLs
#2972
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: