Set deployment slot for non-upgradeable programs (#31792)
* Set deployment slot for non-upgradeable programs * fix sbf programs test
This commit is contained in:
parent
691b12c693
commit
595eb31277
|
@ -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(),
|
||||
);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue