Browse Source

fix: misspelling typo

vnprc 7 months ago
parent
commit
a30a5e2378

+ 1 - 1
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

+ 5 - 5
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<HashMap<Id, Amount>, Error> {
+    pub async fn total_redeemed(&self) -> Result<HashMap<Id, Amount>, 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)
     }
 }
 

+ 3 - 3
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),