load the proofs or we get a zero balance (#310)

(cherry picked from commit 0e058fa69f53689c7d9d37f02b4f5a62c58f03e7)
This commit is contained in:
dyKiU
2023-09-08 15:42:01 +01:00
committed by GitHub
parent 75e8428af7
commit 5e001548fe

View File

@@ -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."