Skip to content

Commit

Permalink
Set deployment slot for non-upgradeable programs (solana-labs#31792)
Browse files Browse the repository at this point in the history
* Set deployment slot for non-upgradeable programs

* fix sbf programs test
  • Loading branch information
pgarg66 authored and jeffwashington committed May 24, 2023
1 parent e499928 commit 1190a31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion programs/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
Expand Down
3 changes: 3 additions & 0 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1190a31

Please sign in to comment.