Skip to content

Commit

Permalink
fix: reset quote status
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Feb 4, 2025
1 parent bd0ec98 commit 1e4843e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/cdk/src/mint/mint_nut04.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,20 @@ impl Mint {

match state {
MintQuoteState::Unpaid => {
let _state = self
.localstore
.update_mint_quote_state(&mint_request.quote, MintQuoteState::Unpaid)
.await?;
return Err(Error::UnpaidQuote);
}
MintQuoteState::Pending => {
return Err(Error::PendingQuote);
}
MintQuoteState::Issued => {
let _state = self
.localstore
.update_mint_quote_state(&mint_request.quote, MintQuoteState::Issued)
.await?;
return Err(Error::IssuedQuote);
}
MintQuoteState::Paid => (),
Expand Down

0 comments on commit 1e4843e

Please sign in to comment.