Skip to content

Instantly share code, notes, and snippets.

@arcticmatt
Created August 6, 2022 21:46
Show Gist options
  • Save arcticmatt/f52b5f5e80c6389bb989228de4411c3d to your computer and use it in GitHub Desktop.
Save arcticmatt/f52b5f5e80c6389bb989228de4411c3d to your computer and use it in GitHub Desktop.
// Old code
#[derive(Accounts)]
pub struct PrintAccounts<'info> {
foo_account: Account<'info, FooAccount>,
#[account(mut)]
bar_account: Account<'info, BarAccount>,
}
// New code
#[derive(Accounts)]
pub struct PrintAccounts<'info> {
foo_account: Account<'info, FooAccount>,
bar_account: Account<'info, BarAccount>,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment