Set deployment slot for non-upgradeable programs (#31792)

* Set deployment slot for non-upgradeable programs

* fix sbf programs test
This commit is contained in:
Pankaj Garg 2023-05-24 09:15:47 -07:00 committed by GitHub
parent 691b12c693
commit 595eb31277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1480,7 +1480,7 @@ fn process_loader_instruction(invoke_context: &mut InvokeContext) -> Result<(),
*program.get_key(),
program.get_owner(),
program.get_data().len(),
0,
invoke_context.programs_loaded_for_tx_batch.slot(),
{},
program.get_data(),
);

View File

@ -1593,6 +1593,9 @@ fn test_program_sbf_test_use_latest_executor() {
)],
Some(&mint_keypair.pubkey()),
);
bank_client
.advance_slot(1, &Pubkey::default())
.expect("Failed to advance the slot");
assert!(bank_client
.send_and_confirm_message(&[&mint_keypair], message)
.is_ok());