Wallet: Fix cli mpp off (#741)

* fix

* tests
This commit is contained in:
callebtc
2025-05-08 18:01:11 +02:00
committed by GitHub
parent 7a18ac8712
commit dc1dccb5e8
2 changed files with 22 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ async def pay(
await wallet.load_mint()
await print_balance(ctx)
payment_hash = bolt11.decode(invoice).payment_hash
amount_mpp_msat = None
if amount:
# we assume `amount` to be in sats
amount_mpp_msat = amount * 1000