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

Validate Realm account in accounts context #6

Open
armaniferrante opened this issue Dec 7, 2021 · 1 comment
Open

Validate Realm account in accounts context #6

armaniferrante opened this issue Dec 7, 2021 · 1 comment

Comments

@armaniferrante
Copy link

armaniferrante commented Dec 7, 2021

If we add a Realm deserializer to the anchor_spl crate, we can move this check to the #[derive(Accounts)] context.

Low priority but would be nice to not use an UncheckedAccount.

@armaniferrante
Copy link
Author

armaniferrante commented Dec 7, 2021

One annoying thing about this is that, because there are many gov program ids, we need to generate a new Realm type for each gov program like we do with vote_weight_record!, so that it has the correct owner pubkey.

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

1 participant