Skip to content

Commit

Permalink
Set is_executable flag upon initialization in loader-v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Nov 4, 2024
1 parent 852f2ba commit e7cff7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/loader-v4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,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;
Expand Down

0 comments on commit e7cff7e

Please sign in to comment.