From 4425dbea9178cf8fe3a21f3df3627cbd19617855 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Fri, 15 Mar 2024 12:37:15 -0700 Subject: [PATCH] congestion_multiplier as u64 (#267) --- sdk/src/fee.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/fee.rs b/sdk/src/fee.rs index b325a23ac08d9d..27ba852ca201dd 100644 --- a/sdk/src/fee.rs +++ b/sdk/src/fee.rs @@ -105,9 +105,9 @@ impl FeeStructure { ) -> u64 { // Fee based on compute units and signatures let congestion_multiplier = if lamports_per_signature == 0 { - 0.0 // test only + 0 // test only } else { - 1.0 // multiplier that has no effect + 1 // multiplier that has no effect }; self.calculate_fee_details( @@ -116,7 +116,7 @@ impl FeeStructure { include_loaded_account_data_size_in_fee, ) .total_fee(remove_rounding_in_fee_calculation) - .saturating_mul(congestion_multiplier as u64) + .saturating_mul(congestion_multiplier) } /// Calculate fee details for `SanitizedMessage`