Created
August 6, 2022 21:42
-
-
Save arcticmatt/e3325c08b8ac25e618a0fc8133fa2a4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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