Skip to content

Commit

Permalink
old error message is fine since we get none for no active keyset
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Nov 10, 2024
1 parent 6773e52 commit ded5543
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions crates/cdk/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ pub enum Error {
/// No active keyset
#[error("No active keyset")]
NoActiveKeyset,
/// No active keyset
#[error("No active keyset with lowest fee")]
NoActiveKeysetWithLowestFee,
/// Incorrect quote amount
#[error("Incorrect quote amount")]
IncorrectQuoteAmount,
Expand Down
2 changes: 1 addition & 1 deletion crates/cdk/src/wallet/keysets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Wallet {
let keyset_with_lowest_fee = active_keysets
.into_iter()
.min_by_key(|key| key.input_fee_ppk)
.ok_or(Error::NoActiveKeysetWithLowestFee)?;
.ok_or(Error::NoActiveKeyset)?;
Ok(keyset_with_lowest_fee)
}
}

0 comments on commit ded5543

Please sign in to comment.