From 75826aedf8e384c1a7e0f6d51be928fea171d828 Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Fri, 22 Nov 2024 15:18:47 -0600 Subject: [PATCH] sbf tests --- programs/sbf/tests/programs.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/programs/sbf/tests/programs.rs b/programs/sbf/tests/programs.rs index 55fb0ce9169b69..52e1a18dbaefd7 100644 --- a/programs/sbf/tests/programs.rs +++ b/programs/sbf/tests/programs.rs @@ -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(); @@ -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( @@ -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(