Skip to content

Instantly share code, notes, and snippets.

@arcticmatt
Created August 6, 2022 21:42
Show Gist options
  • Save arcticmatt/e3325c08b8ac25e618a0fc8133fa2a4c to your computer and use it in GitHub Desktop.
Save arcticmatt/e3325c08b8ac25e618a0fc8133fa2a4c to your computer and use it in GitHub Desktop.
// Old code
#[derive(Accounts)]
pub struct PrintAccounts<'info> {
foo_account: Account<'info, FooAccount>,
bar_account: Account<'info, BarAccount>,
}
// New code
#[derive(Accounts)]
pub struct PrintAccounts<'info> {
foo_account: Box<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