Skip to content

Commit

Permalink
fix(execute): removed commented code
Browse files Browse the repository at this point in the history
Removed commented code for program account push into the vec, vec is now initialized with the program account.
  • Loading branch information
ogmedia authored Feb 7, 2023
1 parent 0371d93 commit f2ba643
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions programs/squads-mpl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,9 @@ pub mod squads_mpl {
let ix_keys = ms_ix.keys.clone();
// create the instruction to invoke from the saved ms ix account
let ix: Instruction = Instruction::from(ms_ix);
// the instruction account vec, with the program account first
let mut ix_account_infos: Vec<AccountInfo> = vec![ix_program_info.clone()];

// add the program account needed for the ix
// ix_account_infos.push(ix_program_info.clone());

// loop through the provided remaining accounts
for account_index in 0..ix_keys.len() {
let ix_account_info = next_account_info(ix_iter)?.clone();
Expand Down

0 comments on commit f2ba643

Please # to comment.