Created
August 6, 2022 21:51
-
-
Save arcticmatt/776ca599bbc2cf1bb9a98ebfee28b163 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 TestIx<'info> { | |
account1: UncheckedAccount<'info>, | |
} | |
// New code | |
#[derive(Accounts)] | |
pub struct TestIx<'info> { | |
account1: UncheckedAccount<'info>, | |
account2: UncheckedAccount<'info>, | |
} | |
// Error | |
// Error: AnchorError caused by account: account2. Error Code: AccountNotEnoughKeys. Error Number: 3005. Error Message: Not enough account keys given to the instruction. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment