fixed descrhash check
This commit is contained in:
parent
afbe46be8b
commit
3750dcfd0e
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue