From b6498389bc93a596d2623ab99535c0200583e28a Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Wed, 1 Dec 2021 11:33:38 +0000 Subject: [PATCH] . --- lnbits/extensions/lnaddress/lnurl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/lnaddress/lnurl.py b/lnbits/extensions/lnaddress/lnurl.py index 3f4b9933..8ddc59f7 100644 --- a/lnbits/extensions/lnaddress/lnurl.py +++ b/lnbits/extensions/lnaddress/lnurl.py @@ -37,7 +37,7 @@ async def lnurl_response(username: str, domain: str, request: Request): metadata=await address.lnurlpay_metadata(domain=domain), ) print("RESP", resp.dict()) - return json.dumps(resp) + return json.dumps(resp.dict()) @lnaddress_ext.get("/lnurl/cb/{address_id}", name="lnaddress.lnurl_callback", response_class=HTMLResponse) @@ -84,4 +84,4 @@ async def lnurl_callback(address_id, amount: int = Query(...)): resp = LnurlPayActionResponse(pr=r["payment_request"], routes=[]) - return json.dumps(resp) + return json.dumps(resp.dict())