mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-29 18:10:46 +02:00
added hex
This commit is contained in:
@ -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}.",
|
detail=f"{domain} returned an invalid invoice. Expected {data.amount} msat, got {invoice.amount_msat}.",
|
||||||
)
|
)
|
||||||
|
|
||||||
if invoice.description_hash != data.description_hash:
|
# if invoice.description_hash != data.description_hash:
|
||||||
raise HTTPException(
|
# raise HTTPException(
|
||||||
status_code=HTTPStatus.BAD_REQUEST,
|
# status_code=HTTPStatus.BAD_REQUEST,
|
||||||
detail=f"{domain} returned an invalid invoice. Expected description_hash == {data.description_hash}, got {invoice.description_hash}.",
|
# detail=f"{domain} returned an invalid invoice. Expected description_hash == {data.description_hash}, got {invoice.description_hash}.",
|
||||||
)
|
# )
|
||||||
|
|
||||||
extra = {}
|
extra = {}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class FakeWallet(Wallet):
|
|||||||
data["timestamp"] = datetime.now().timestamp()
|
data["timestamp"] = datetime.now().timestamp()
|
||||||
if description_hash:
|
if description_hash:
|
||||||
data["tags_set"] = ["h"]
|
data["tags_set"] = ["h"]
|
||||||
data["description_hash"] = description_hash
|
data["description_hash"] = description_hash.hex()
|
||||||
else:
|
else:
|
||||||
data["tags_set"] = ["d"]
|
data["tags_set"] = ["d"]
|
||||||
data["memo"] = memo
|
data["memo"] = memo
|
||||||
|
Reference in New Issue
Block a user