invoice without memo

This commit is contained in:
callebtc
2022-02-17 09:29:10 +01:00
parent cd84623305
commit d559c604fa

View File

@ -140,7 +140,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
memo = "" memo = ""
else: else:
description_hash = b"" description_hash = b""
memo = data.memo memo = data.memo if data.memo is not None else "LNbits"
if data.unit == "sat": if data.unit == "sat":
amount = int(data.amount) amount = int(data.amount)
else: else: