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: Add deprecated attribute to ProgramAccount #1014

Merged
merged 2 commits into from
Nov 14, 2021

Conversation

fanatid
Copy link
Contributor

@fanatid fanatid commented Nov 14, 2021

ProgramAccount is deprecated from 0.15.0: https://github.com/project-serum/anchor/blob/master/CHANGELOG.md#0150---2021-09-07

This PR adds deprecated attribute to ProgramAccount.

@@ -48,6 +48,7 @@ pub type IdlCreateAccounts<'info> = crate::ctor::Ctor<'info>;
#[derive(Accounts)]
pub struct IdlAccounts<'info> {
#[account(mut, has_one = authority)]
#[allow(deprecated)]
pub idl: ProgramAccount<'info, IdlAccount>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how to replace ProgramAccount for IdlAccount. We can't use Box<Account<'info, IdlAccount>> because IdlAccount do not implement Owner trait.

@armaniferrante armaniferrante merged commit 3688683 into coral-xyz:master Nov 14, 2021
@fanatid fanatid deleted the deprecated-pa branch November 14, 2021 18:04
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.

2 participants