From 33367670574fa803598fc7b2e31cd88f36d1acc7 Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 3 Nov 2021 11:14:41 +0000 Subject: [PATCH] made default meme --- lnbits/core/services.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lnbits/core/services.py b/lnbits/core/services.py index e0ef3f240..e5a7caadb 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -44,7 +44,7 @@ async def create_invoice( *, wallet_id: str, amount: int, # in satoshis - memo: str, + memo: Optional[str] = None, description_hash: Optional[bytes] = None, extra: Optional[Dict] = None, webhook: Optional[str] = None, @@ -53,6 +53,7 @@ async def create_invoice( if not memo: memo = "LN payment" invoice_memo = None if description_hash else memo + ok, checking_id, payment_request, error_message = await WALLET.create_invoice( amount=amount, memo=invoice_memo, description_hash=description_hash ) @@ -68,7 +69,7 @@ async def create_invoice( payment_request=payment_request, payment_hash=invoice.payment_hash, amount=amount_msat, - memo=invoice_memo, + memo=memo, extra=extra, webhook=webhook, conn=conn,