From 325afd75f7ec1aa7bc1be88e6f3b2fecb28132b6 Mon Sep 17 00:00:00 2001 From: gudnuf Date: Wed, 13 Aug 2025 19:10:20 -0700 Subject: [PATCH] fix: allow paid and issued bolt12 quotes to settle internally --- crates/cdk/src/mint/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index 2fcf8fc3..ed0752b0 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -703,8 +703,9 @@ impl Mint { }; // Mint quote has already been settled, proofs should not be burned or held. - if mint_quote.state() == MintQuoteState::Issued - || mint_quote.state() == MintQuoteState::Paid + if (mint_quote.state() == MintQuoteState::Issued + || mint_quote.state() == MintQuoteState::Paid) + && mint_quote.payment_method == PaymentMethod::Bolt11 { return Err(Error::RequestAlreadyPaid); }