From 5e001548fe3975df54717e277d8a2f6ad32663a7 Mon Sep 17 00:00:00 2001 From: dyKiU <127620445+dyKiU@users.noreply.github.com> Date: Fri, 8 Sep 2023 15:42:01 +0100 Subject: [PATCH] load the proofs or we get a zero balance (#310) (cherry picked from commit 0e058fa69f53689c7d9d37f02b4f5a62c58f03e7) --- cashu/wallet/api/router.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu/wallet/api/router.py b/cashu/wallet/api/router.py index 63820b9..1f6fcae 100644 --- a/cashu/wallet/api/router.py +++ b/cashu/wallet/api/router.py @@ -88,6 +88,7 @@ async def pay( global wallet wallet = await mint_wallet(mint) + await wallet.load_proofs(reload=True) total_amount, fee_reserve_sat = await wallet.get_pay_amount_with_fees(invoice) assert total_amount > 0, "amount has to be larger than zero."