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

This commit is contained in:
Pankaj Garg 2023-09-16 13:11:47 -07:00 committed by GitHub
parent 6283c1d568
commit 6300a43f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}