Skip to content

Commit

Permalink
update sbf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Dec 20, 2023
1 parent 14b80d5 commit 068db48
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use {
parse_bpf_upgradeable_loader, BpfUpgradeableLoaderAccountType,
},
solana_accounts_db::transaction_results::{
DurableNonceFee, InnerInstruction, TransactionExecutionDetails, TransactionExecutionResult,
InnerInstruction, TransactionExecutionDetails, TransactionExecutionResult,
TransactionResults,
},
solana_ledger::token_balances::collect_token_balances,
Expand Down Expand Up @@ -190,25 +190,13 @@ fn execute_transactions(
status,
log_messages,
inner_instructions,
durable_nonce_fee,
return_data,
executed_units,
..
} = details;

let lamports_per_signature = match durable_nonce_fee {
Some(DurableNonceFee::Valid(lamports_per_signature)) => {
Some(lamports_per_signature)
}
Some(DurableNonceFee::Invalid) => None,
None => bank.get_lamports_per_signature_for_blockhash(
&tx.message().recent_blockhash,
),
}
.expect("lamports_per_signature must be available");
let fee = bank.get_fee_for_message_with_lamports_per_signature(
let fee = bank.get_fee_for_message(
&SanitizedMessage::try_from(tx.message().clone()).unwrap(),
lamports_per_signature,
);

let inner_instructions = inner_instructions.map(|inner_instructions| {
Expand Down

0 comments on commit 068db48

Please sign in to comment.