Created
April 9, 2022 03:10
-
-
Save alecchendev/1f2d9142c15002c84b853069f166adeb 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
// don't forget to import! | |
use solana_program::{ | |
account_info::{AccountInfo, next_account_info} | |
}; | |
// code inside of `process_instruction` | |
let accounts_iter = &mut accounts.iter(); // accounts here refers to the argument denoting the array of `AccountInfo`s | |
let account_one = next_account_info(accounts_iter)?; | |
let account_two = next_account_info(accounts_iter)?; | |
let account_three = next_account_info(accounts_iter)?; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment