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 executable attribute #138

Closed
armaniferrante opened this issue Apr 3, 2021 · 1 comment
Closed

lang: Add executable attribute #138

armaniferrante opened this issue Apr 3, 2021 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@armaniferrante
Copy link
Member

#[derive(Accounts)]
pub struct MyInstruction<'info> {
    #[account(executable)]
    program: AccountInfo<'info>,
}

Should add a constraint that asserts the given account is an executable program accounnt.

@armaniferrante armaniferrante added help wanted Extra attention is needed good first issue Good for newcomers labels Apr 3, 2021
@armaniferrante
Copy link
Member Author

Addressed by #140.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant