Merge pull request #383 from arcbtc/FastAPI

fixed descrhash check
This commit is contained in:
Arc
2021-11-03 12:04:14 +00:00
committed by GitHub

View File

@@ -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: