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
I'm not sure how feasible it is for us to support a list of possible generic types for accounts. However, there is an optional account feature coming to anchor that has syntax more like Option<UnionAccountLoader<'info, OptionalAccount>>. Check out #2101
If I am versioning an account type in an action, it would be great to support something like
This could be extended to support optional accounts as well
Perhaps
None
could be a special case since it is not a type, but thenload
andload_mut
could also take the type you are trying to load as well.The text was updated successfully, but these errors were encountered: