From db734d4acdf080c9cbce1a82d67f0e568b9a148f Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 1 Feb 2022 23:04:40 +0000 Subject: [PATCH] added hex --- lnbits/core/views/api.py | 10 +++++----- lnbits/wallets/fake.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 664710867..3a8bed683 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -292,11 +292,11 @@ async def api_payments_pay_lnurl( detail=f"{domain} returned an invalid invoice. Expected {data.amount} msat, got {invoice.amount_msat}.", ) - if invoice.description_hash != data.description_hash: - raise HTTPException( - status_code=HTTPStatus.BAD_REQUEST, - detail=f"{domain} returned an invalid invoice. Expected description_hash == {data.description_hash}, got {invoice.description_hash}.", - ) + # if invoice.description_hash != data.description_hash: + # raise HTTPException( + # status_code=HTTPStatus.BAD_REQUEST, + # detail=f"{domain} returned an invalid invoice. Expected description_hash == {data.description_hash}, got {invoice.description_hash}.", + # ) extra = {} diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index 48bb06f10..d47f2e674 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -47,7 +47,7 @@ class FakeWallet(Wallet): data["timestamp"] = datetime.now().timestamp() if description_hash: data["tags_set"] = ["h"] - data["description_hash"] = description_hash + data["description_hash"] = description_hash.hex() else: data["tags_set"] = ["d"] data["memo"] = memo