mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 12:26:19 +02:00
@@ -95,7 +95,7 @@ class CreateInvoiceData(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
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)
|
description_hash = unhexlify(data.description_hash)
|
||||||
memo = ""
|
memo = ""
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user