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.
My IDL has an account struct called MyAccount.
The IDL has the following within an event type:
In the rust client generation of this event type, MyAccount is imported as
use crate::generated::types::MyAccount;rather than the correct import of usecrate::generated::accounts::MyAccount;.Rust client generation should correctly determine whether a defined struct is a type or an account and import it as such.