mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-04 09:24:22 +01:00
load the proofs or we get a zero balance (#310)
(cherry picked from commit 0e058fa69f53689c7d9d37f02b4f5a62c58f03e7)
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user