From 9f0c3f7c39b3bb539cec40fbb09d3a2d1558da8a Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:21:23 +0200 Subject: [PATCH] Update cashu/mint/ledger.py Co-authored-by: lollerfirst <43107113+lollerfirst@users.noreply.github.com> --- cashu/mint/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py index c1a1c6e5..89ae45b0 100644 --- a/cashu/mint/ledger.py +++ b/cashu/mint/ledger.py @@ -758,7 +758,8 @@ async def get_melt_quote(self, quote_id: str) -> MeltQuote: status: PaymentStatus = await self.backends[method][ unit ].get_payment_status(melt_quote.checking_id) - if status.result == PaymentResult.SETTLED: + if status.settled: + logger.trace(f"Setting quote {quote_id} as paid") melt_quote.state = MeltQuoteState.paid if status.fee: