From 3750dcfd0e5a4361e3d8a9c58624b85e13ce27cd Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 3 Nov 2021 12:03:48 +0000 Subject: [PATCH] fixed descrhash check --- lnbits/core/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 553e1b90..c82021e7 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -95,7 +95,7 @@ class CreateInvoiceData(BaseModel): async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet): - if "description_hash" in data: + if data.description_hash: description_hash = unhexlify(data.description_hash) memo = "" else: