From 1e4843ef4866c45188c7032ed534644968177fae Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Tue, 4 Feb 2025 17:17:35 +0000 Subject: [PATCH] fix: reset quote status --- crates/cdk/src/mint/mint_nut04.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/cdk/src/mint/mint_nut04.rs b/crates/cdk/src/mint/mint_nut04.rs index ad7129406..46e769bc3 100644 --- a/crates/cdk/src/mint/mint_nut04.rs +++ b/crates/cdk/src/mint/mint_nut04.rs @@ -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 => (),