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

Commit f76bae5

Browse files
committed
Set loader-v4 program deployment slot at actual deployment
1 parent 6283c1d commit f76bae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/loader-v4/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pub fn process_instruction_truncate(
341341
)?;
342342
if is_initialization {
343343
let state = get_state_mut(program.get_data_mut()?)?;
344-
state.slot = invoke_context.get_sysvar_cache().get_clock()?.slot;
344+
state.slot = 0;
345345
state.status = LoaderV4Status::Retracted;
346346
state.authority_address = *authority_address;
347347
}

0 commit comments

Comments
 (0)