Skip to content

Commit

Permalink
feat: hackathosne
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 13, 2024
1 parent ffa9c69 commit a18bf73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/cdk/src/wallet/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ impl Wallet {

let status = self.mint_quote_state(quote_id).await?;

println!(
"Amount paid: {}, Amount issued: {}",
status.amount_paid, status.amount_issued
);

let amount = status.amount_paid - status.amount_issued;

let amount = if amount == Amount::ZERO {
Expand Down Expand Up @@ -303,7 +308,7 @@ impl Wallet {
let minted_amount = Amount::try_sum(proofs.iter().map(|p| p.amount))?;

// Remove filled quote from store
self.localstore.remove_mint_quote(&quote_info.id).await?;
//self.localstore.remove_mint_quote(&quote_info.id).await?;

if spending_conditions.is_none() {
// Update counter for keyset
Expand Down

0 comments on commit a18bf73

Please sign in to comment.