Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Don't use api from the future
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jan 5, 2023
1 parent 216880f commit f74a52f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/src/prioritization_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ impl PrioritizationFee {
}

pub fn get_min_transaction_fee(&self) -> Option<u64> {
(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<u64> {
Expand Down

0 comments on commit f74a52f

Please sign in to comment.