diff --git a/programs/loader-v4/src/lib.rs b/programs/loader-v4/src/lib.rs index f44031f6f15021..6f875a478f3b6b 100644 --- a/programs/loader-v4/src/lib.rs +++ b/programs/loader-v4/src/lib.rs @@ -337,6 +337,7 @@ pub fn process_instruction_truncate( LoaderV4State::program_data_offset().saturating_add(new_size as usize), )?; if is_initialization { + program.set_executable(true)?; let state = get_state_mut(program.get_data_mut()?)?; state.slot = 0; state.status = LoaderV4Status::Retracted;