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: misspelling typo #273

Merged
merged 1 commit into from
Aug 2, 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
2 changes: 1 addition & 1 deletion crates/cdk-cli/src/sub_commands/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions crates/cdk/src/mint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand All @@ -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)
}
}

Expand Down
6 changes: 3 additions & 3 deletions crates/cdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Loading