From 544f62c92fc871104d76877eb69fda513db8984b Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Tue, 6 Jul 2021 13:05:39 -0600 Subject: [PATCH] Fix set-lockup custodian index --- programs/stake/src/stake_instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/stake/src/stake_instruction.rs b/programs/stake/src/stake_instruction.rs index daa78f1c41..7df6f0a422 100644 --- a/programs/stake/src/stake_instruction.rs +++ b/programs/stake/src/stake_instruction.rs @@ -248,7 +248,7 @@ pub fn process_instruction( StakeInstruction::SetLockupChecked(lockup_checked) => { if invoke_context.is_feature_active(&feature_set::vote_stake_checked_instructions::id()) { - let custodian = if let Ok(custodian) = keyed_account_at_index(keyed_accounts, 4) { + let custodian = if let Ok(custodian) = keyed_account_at_index(keyed_accounts, 2) { Some( *custodian .signer_key()