Skip to content

[nodes-from-anchor] Cannot link accounts data #690

Description

@Taylor123

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

No one assigned

    Labels

    anchorImproves conversion from Anchor IDLv2Something to look into when updating the Codama standard to v2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions