From 665c927c682d5fedea5e5c0cdddb1a8bcf98c4d4 Mon Sep 17 00:00:00 2001 From: hidewrong Date: Tue, 14 Jan 2025 20:03:39 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: hidewrong --- crates/cashu/src/nuts/nut05.rs | 2 +- crates/cdk/src/mint/mod.rs | 2 +- crates/cdk/src/wallet/proofs.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cashu/src/nuts/nut05.rs b/crates/cashu/src/nuts/nut05.rs index ab042c8e..75e74f4d 100644 --- a/crates/cashu/src/nuts/nut05.rs +++ b/crates/cashu/src/nuts/nut05.rs @@ -161,7 +161,7 @@ pub struct MeltQuoteBolt11Response { pub amount: Amount, /// The fee reserve that is required pub fee_reserve: Amount, - /// Whether the the request haas be paid + /// Whether the request haas be paid // TODO: To be deprecated /// Deprecated pub paid: Option, diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index 0d7a1647..23fd96e1 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -344,7 +344,7 @@ impl Mint { if let Ok(secret) = <&crate::secret::Secret as TryInto>::try_into(&proof.secret) { - // Checks and verifes known secret kinds. + // Checks and verifies known secret kinds. // If it is an unknown secret kind it will be treated as a normal secret. // Spending conditions will **not** be check. It is up to the wallet to ensure // only supported secret kinds are used as there is no way for the mint to diff --git a/crates/cdk/src/wallet/proofs.rs b/crates/cdk/src/wallet/proofs.rs index b6c0aba6..2ecc8354 100644 --- a/crates/cdk/src/wallet/proofs.rs +++ b/crates/cdk/src/wallet/proofs.rs @@ -126,7 +126,7 @@ impl Wallet { .await?; // Both `State::Pending` and `State::Unspent` should be included in the pending - // table. This is because a proof that has been crated to send will be + // table. This is because a proof that has been created to send will be // stored in the pending table in order to avoid accidentally double // spending but to allow it to be explicitly reclaimed let pending_states: HashSet = states