diff --git a/programs/loader-v3/src/lib.rs b/programs/loader-v3/src/lib.rs index 41cb683517111b..ba496426380515 100644 --- a/programs/loader-v3/src/lib.rs +++ b/programs/loader-v3/src/lib.rs @@ -579,7 +579,7 @@ pub fn process_instruction(invoke_context: &mut InvokeContext) -> Result<(), Ins ); drop(program); match &loaded_program.program { - LoadedProgramType::Invalid => Err(InstructionError::InvalidAccountData), + LoadedProgramType::Invalid(_) => Err(InstructionError::InvalidAccountData), LoadedProgramType::Typed(executable) => execute(invoke_context, executable), _ => Err(InstructionError::IncorrectProgramId), }