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

lang: Build should error when PDA payer is not marked mutable #418

Closed
armaniferrante opened this issue Jun 25, 2021 · 2 comments
Closed
Labels

Comments

@armaniferrante
Copy link
Member

We should be able to parse the accounts at compile time and inspect the payer field to ensure it's marked mutable, giving the developer a more informative error than the current Cross-program invocation with unauthorized signer or writable account.

@iurage
Copy link

iurage commented Nov 30, 2021

-> Anchor should check that the Payer is both mutable and a Signer at compile time to avoid this issue.

Ran into this problem earlier when executing an instruction with CPI using Multisig Program. This mutable/signer check does not show up when executed with the Anchor client, so some discrepancy there.

@paul-schaaf
Copy link
Contributor

closed by #1271

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

No branches or pull requests

3 participants