Skip to content

Commit

Permalink
Set loader-v4 program deployment slot at actual deployment (#33278)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored Sep 16, 2023
1 parent 6283c1d commit 6300a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/loader-v4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ pub fn process_instruction_truncate(
)?;
if is_initialization {
let state = get_state_mut(program.get_data_mut()?)?;
state.slot = invoke_context.get_sysvar_cache().get_clock()?.slot;
state.slot = 0;
state.status = LoaderV4Status::Retracted;
state.authority_address = *authority_address;
}
Expand Down

0 comments on commit 6300a43

Please sign in to comment.