Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anchorpy client-gen fails with error: "unknown variant alias, expected struct or enum" #131

Closed
totlsota opened this issue Dec 28, 2023 · 2 comments

Comments

@totlsota
Copy link

using raydium idl

anchorpy client-gen fails with error: "unknown variant alias, expected struct or enum"

when encountering this in the types section:

{"name":"TickArryBitmap","type":{"kind":"alias","value":{"array":["u64",8]}}}

this error is raised:

/anchorpy/cli.py", line 109, in client_gen
    idl_obj = Idl.from_json(idl.read_text())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
solders.SerdeJSONError: unknown variant `alias`, expected `struct` or `enum` at line 1 column 20942

using latest version of anchorpy

user error is not out of the realm of possibility ;)

@totlsota
Copy link
Author

LOL 😆

@kevinheavey
Copy link
Owner

Fixed by #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants