Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Set loader-v4 program deployment slot at actual deployment #33278

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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