Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(priority_fee_estimate): Change None to Min and Add recommended Option #21

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/get_priority_fee_estimate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async fn main() -> Result<(), HeliusError> {
include_all_priority_fee_levels: None,
transaction_encoding: None,
lookback_slots: None,
recommended: None,
}),
};

Expand Down
2 changes: 1 addition & 1 deletion src/types/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl MintApiAuthority {

#[derive(Serialize, Deserialize, Debug)]
pub enum PriorityLevel {
None,
Min,
Low,
Medium,
High,
Expand Down
1 change: 1 addition & 0 deletions src/types/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ pub struct GetPriorityFeeEstimateOptions {
pub include_all_priority_fee_levels: Option<bool>,
pub transaction_encoding: Option<UiTransactionEncoding>,
pub lookback_slots: Option<u8>,
pub recommended: Option<bool>,
}

#[derive(Serialize, Deserialize, Debug, Default)]
Expand Down
2 changes: 2 additions & 0 deletions tests/rpc/test_get_priority_fee_estimate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async fn test_get_nft_editions_success() {
include_all_priority_fee_levels: None,
transaction_encoding: None,
lookback_slots: None,
recommended: None,
}),
};

Expand Down Expand Up @@ -115,6 +116,7 @@ async fn test_get_nft_editions_failure() {
include_all_priority_fee_levels: None,
transaction_encoding: None,
lookback_slots: None,
recommended: None,
}),
};

Expand Down
Loading