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

Mild possibility of #[derive(Accounts)] name clashes #819

Closed
cqfd opened this issue Oct 2, 2021 · 1 comment
Closed

Mild possibility of #[derive(Accounts)] name clashes #819

cqfd opened this issue Oct 2, 2021 · 1 comment
Labels
bug Something isn't working lang

Comments

@cqfd
Copy link
Contributor

cqfd commented Oct 2, 2021

Ran into a funny bug in the #beginner-questions discord: someone was using a accounts struct with a program_id: AccountInfo<'info> field. This breaks the derive macro output, because the generated try_accounts impl is already using the name program_id (you'd get a similar error if you used a field called accounts or ix_data).

@paul-schaaf paul-schaaf added the bug Something isn't working label Jan 10, 2022
@acheroncrypto
Copy link
Collaborator

Fixed in #2464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lang
Projects
None yet
Development

No branches or pull requests

3 participants