From f74a52f0bc83e139e47c5cdf4d6f56dc3488491d Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 5 Jan 2023 13:05:47 -0700 Subject: [PATCH] Don't use api from the future --- runtime/src/prioritization_fee.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {