You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
@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
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 importdot::program::*
. See #56But 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 #59The text was updated successfully, but these errors were encountered: