From a30a5e2378298e49eaba5e6a192ca743dea1a322 Mon Sep 17 00:00:00 2001 From: vnprc Date: Thu, 1 Aug 2024 22:28:33 -0400 Subject: [PATCH] fix: misspelling typo --- crates/cdk-cli/src/sub_commands/send.rs | 2 +- crates/cdk/src/mint/mod.rs | 10 +++++----- crates/cdk/src/wallet/mod.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/cdk-cli/src/sub_commands/send.rs b/crates/cdk-cli/src/sub_commands/send.rs index 7e6e1e1a..f5bcf3e5 100644 --- a/crates/cdk-cli/src/sub_commands/send.rs +++ b/crates/cdk-cli/src/sub_commands/send.rs @@ -39,7 +39,7 @@ pub struct SendSubCommand { /// Should the send be offline only #[arg(short, long)] offline: bool, - /// Include fee to redeam in token + /// Include fee to redeem in token #[arg(short, long)] include_fee: bool, /// Amount willing to overpay to avoid a swap diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index 52779d5b..9bd85f55 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -1180,12 +1180,12 @@ impl Mint { Ok(total_issued) } - /// Total redeamed for keyset + /// Total redeemed for keyset #[instrument(skip_all)] - pub async fn total_redeamed(&self) -> Result, Error> { + pub async fn total_redeemed(&self) -> Result, Error> { let keysets = self.localstore.get_keyset_infos().await?; - let mut total_redeamed = HashMap::new(); + let mut total_redeemed = HashMap::new(); for keyset in keysets { let (proofs, state) = self.localstore.get_proofs_by_keyset_id(&keyset.id).await?; @@ -1199,10 +1199,10 @@ impl Mint { }) .sum(); - total_redeamed.insert(keyset.id, total_spent); + total_redeemed.insert(keyset.id, total_spent); } - Ok(total_redeamed) + Ok(total_redeemed) } } diff --git a/crates/cdk/src/wallet/mod.rs b/crates/cdk/src/wallet/mod.rs index 60ac1c13..f018f20e 100644 --- a/crates/cdk/src/wallet/mod.rs +++ b/crates/cdk/src/wallet/mod.rs @@ -711,13 +711,13 @@ impl Wallet { .unwrap() .len(); - let fee_to_redeam = self + let fee_to_redeem = self .get_keyset_count_fee(&active_keyset_id, split_count as u64) .await?; ( - amount.map(|a| a + fee_to_redeam), - change_amount - fee_to_redeam, + amount.map(|a| a + fee_to_redeem), + change_amount - fee_to_redeem, ) } false => (amount, change_amount),