pub fn convert_idl(idl: &[u8]) -> Result<Idl>
Expand description
Create an Idl
value with additional support for older specs based on the
idl.metadata.spec
field.
If spec
field is not specified, the conversion will fallback to the legacy IDL spec
(pre Anchor v0.30.1).
Note: For legacy IDLs, idl.metadata.address
field is required to be populated with
program’s address otherwise an error will be returned.