Skip to content

Commit

Permalink
Update cashu/mint/ledger.py
Browse files Browse the repository at this point in the history
Co-authored-by: lollerfirst <[email protected]>
  • Loading branch information
callebtc and lollerfirst authored Sep 20, 2024
1 parent 71e680c commit 9f0c3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cashu/mint/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9f0c3f7

Please sign in to comment.