Skip to content

Commit

Permalink
sbf tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Nov 26, 2024
1 parent 2806225 commit 75826ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3856,6 +3856,7 @@ fn test_program_fees() {
FeeStructure::new(0.000005, 0.0, vec![(200, 0.0000005), (1400000, 0.000005)]);
bank.set_fee_structure(&fee_structure);
let (bank, bank_forks) = bank.wrap_with_bank_forks_for_tests();
let feature_set = bank.feature_set.clone();
let mut bank_client = BankClient::new_shared(bank);
let authority_keypair = Keypair::new();

Expand All @@ -3880,8 +3881,8 @@ fn test_program_fees() {
.unwrap();
let fee_budget_limits = FeeBudgetLimits::from(
process_compute_budget_instructions(SVMMessage::program_instructions_iter(
&sanitized_message,
))
&sanitized_message
), &feature_set)
.unwrap_or_default(),
);
let expected_normal_fee = solana_fee::calculate_fee(
Expand Down Expand Up @@ -3912,8 +3913,8 @@ fn test_program_fees() {
.unwrap();
let fee_budget_limits = FeeBudgetLimits::from(
process_compute_budget_instructions(SVMMessage::program_instructions_iter(
&sanitized_message,
))
&sanitized_message
), &feature_set)
.unwrap_or_default(),
);
let expected_prioritized_fee = solana_fee::calculate_fee(
Expand Down

0 comments on commit 75826ae

Please sign in to comment.