-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
anchorImproves conversion from Anchor IDLImproves conversion from Anchor IDLv2Something to look into when updating the Codama standard to v2Something to look into when updating the Codama standard to v2
Description
My IDL has an account struct called MyAccount.
The IDL has the following within an event type:
...
{
"name": "oldState",
"type": {
"option": {
"defined": "MyAccount"
}
}
},
In the rust client generation of this event type, MyAccount is imported as use crate::generated::types::MyAccount; rather than the correct import of use crate::generated::accounts::MyAccount;.
Rust client generation should correctly determine whether a defined struct is a type or an account and import it as such.
Metadata
Metadata
Assignees
Labels
anchorImproves conversion from Anchor IDLImproves conversion from Anchor IDLv2Something to look into when updating the Codama standard to v2Something to look into when updating the Codama standard to v2