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

Static owner checking #686

Merged
merged 12 commits into from
Sep 7, 2021
Merged

Static owner checking #686

merged 12 commits into from
Sep 7, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented Sep 6, 2021

Closes #645 and #424.

@armaniferrante armaniferrante marked this pull request as ready for review September 7, 2021 20:02
@armaniferrante armaniferrante merged commit 3958533 into master Sep 7, 2021
@armaniferrante armaniferrante deleted the armani/static branch September 7, 2021 20:06
t4t5 added a commit to t4t5/anchor that referenced this pull request Sep 19, 2021
Was a bit confused when first reading this, but then saw that `ProgramAccount` was deprecated in coral-xyz#686
Copy link
Contributor

@acamill acamill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this block here https://github.com/project-serum/anchor/pull/686/files#diff-d72d3019c988f978d25ec6c2dadc2c66f4208eaf074bdcda2f3fddffaf94f63fL218

Be changed by adding this to be more idiomatic?

#[account(seeds = [pool_usdc.mint.as_ref()], bump)]
 pub pool_signer: AccountInfo<'info>,

pathoam added a commit to pathoam/anchor that referenced this pull request Oct 12, 2021
Update tutorial 3 docs to reflect CpiAccount deprecation (coral-xyz#686)
@pathoam pathoam mentioned this pull request Oct 12, 2021
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

Successfully merging this pull request may close these issues.

lang: Statically defined program id and owner checks for all accounts
2 participants