diff --git a/programs/stake/src/stake_instruction.rs b/programs/stake/src/stake_instruction.rs index 0a37e34998b7ad..a0de27299a14fc 100644 --- a/programs/stake/src/stake_instruction.rs +++ b/programs/stake/src/stake_instruction.rs @@ -426,11 +426,11 @@ pub fn process_instruction( } } Ok(StakeInstruction::Redelegate) => { + let mut me = get_stake_account()?; if invoke_context .feature_set .is_active(&feature_set::stake_redelegate_instruction::id()) { - let mut me = get_stake_account()?; instruction_context.check_number_of_instruction_accounts(3)?; let config_account = instruction_context.try_borrow_instruction_account(transaction_context, 3)?; @@ -452,11 +452,6 @@ pub fn process_instruction( &signers, ) } else { - if !invoke_context.feature_set.is_active( - &feature_set::add_get_minimum_delegation_instruction_to_stake_program::id(), - ) { - let _ = get_stake_account()?; - } Err(InstructionError::InvalidInstructionData) } }