diff --git a/runtime/src/prioritization_fee.rs b/runtime/src/prioritization_fee.rs index 3c225090278989..bd847dd4224163 100644 --- a/runtime/src/prioritization_fee.rs +++ b/runtime/src/prioritization_fee.rs @@ -153,7 +153,11 @@ impl PrioritizationFee { } pub fn get_min_transaction_fee(&self) -> Option { - (self.min_transaction_fee != u64::MAX).then_some(self.min_transaction_fee) + if self.min_transaction_fee != u64::MAX { + Some(self.min_transaction_fee) + } else { + None + } } pub fn get_writable_account_fee(&self, key: &Pubkey) -> Option {