From f2ba643daed5f660db02aac548ca6c2022efc507 Mon Sep 17 00:00:00 2001 From: slg Date: Tue, 7 Feb 2023 10:25:20 -0500 Subject: [PATCH] fix(execute): removed commented code Removed commented code for program account push into the vec, vec is now initialized with the program account. --- programs/squads-mpl/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/programs/squads-mpl/src/lib.rs b/programs/squads-mpl/src/lib.rs index 0a50dea..f2a92f7 100644 --- a/programs/squads-mpl/src/lib.rs +++ b/programs/squads-mpl/src/lib.rs @@ -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 = 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();