From 176406a9828fb822cc596d8769a2119ab3341216 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Fri, 16 Apr 2021 21:35:30 +0100 Subject: [PATCH] l --- lnbits/extensions/copilot/lnurl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/copilot/lnurl.py b/lnbits/extensions/copilot/lnurl.py index 50def316..d4b72c9d 100644 --- a/lnbits/extensions/copilot/lnurl.py +++ b/lnbits/extensions/copilot/lnurl.py @@ -68,7 +68,7 @@ async def lnurl_callback(cp_id): amount=int(amount_received / 1000), memo=cp.lnurl_title, webhook="/copilot/api/v1/copilot/hook/" + cp_id + "/" + str(amount_received), - description_hash=hashlib.sha256((cp.lnurl_title).encode("utf-8")).digest(), + description_hash=hashlib.sha256((str(cp.lnurl_title)).encode("utf-8")).digest(), extra={"tag": "copilot", "comment": comment}, )