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

Allow passing named account vectors in a context #1001

Closed
mgild opened this issue Nov 11, 2021 · 4 comments
Closed

Allow passing named account vectors in a context #1001

mgild opened this issue Nov 11, 2021 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@mgild
Copy link
Contributor

mgild commented Nov 11, 2021

Example:

#[derive(Accounts)]
pub struct PaymentAction<'info> {
    #[account(mut)]
    pub wallets: Vec<Account<'info, TokenAccount>>,
}
@mgild
Copy link
Contributor Author

mgild commented Nov 11, 2021

Also, this presents a pretty easy way to make named accounts optional (ie when the vector is empty)

@cherryman
Copy link
Contributor

Related to #617.

@mgild
Copy link
Contributor Author

mgild commented Nov 15, 2021

Related to #617.

This issue is unrelated

@fanatid
Copy link
Contributor

fanatid commented Nov 15, 2021

Duplicate of #69

@fanatid fanatid marked this as a duplicate of #69 Nov 15, 2021
@fanatid fanatid closed this as completed Nov 15, 2021
@fanatid fanatid added the duplicate This issue or pull request already exists label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants