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

Remove the path from account references in accounts structs (blocked by #59) #60

Open
mcintyre94 opened this issue Nov 25, 2022 · 1 comment

Comments

@mcintyre94
Copy link
Contributor

mcintyre94 commented Nov 25, 2022

In Anchor 0.2.5 there's an IDL parsing error when seeds reference an account that has a path, eg. pub post: Box<Account<'info, dot::program::Post>>,

See coral-xyz/anchor#2268

While this is fixed in Anchor, the fix hasn't been released yet and Seahorse users won't have a fixed version yet. Update: Fixed in Anchor 0.2.6 which is released + works with Seahorse

When the account is defined in src/dot/program.rs (as they are by default) then we can just remove the path, because we import dot::program::*. See #56

But for accounts defined elsewhere, we will need to also import their paths into src/lib.rs in order to do this. This will depend on a fix for #59

@mcintyre94 mcintyre94 moved this to Todo in Seahorse Nov 25, 2022
@mcintyre94 mcintyre94 changed the title Remove the path from account references in accounts structs Remove the path from account references in accounts structs (blocked by #59) Nov 25, 2022
@mcintyre94
Copy link
Contributor Author

@ameliatastic How are you thinking about supporting Anchor versions? If we drop support for 0.2.5 we can just close this since it's fixed in 0.2.6 which we support

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

No branches or pull requests

1 participant