From 5af1be369c231144c6d186f8d615bac19dd38152 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 717e8181..c5bbbf7a 100644 --- a/crates/cdk/src/mint/mint_nut04.rs +++ b/crates/cdk/src/mint/mint_nut04.rs @@ -278,12 +278,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 => (),