From f9ee067e889e6bcb35689439649ded1cc2a4220c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Thu, 14 Aug 2025 12:12:00 +0200 Subject: [PATCH] fix: broken lnurl error message on amount limits (#96) --- views_lnurl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views_lnurl.py b/views_lnurl.py index 462486f..3d882bd 100644 --- a/views_lnurl.py +++ b/views_lnurl.py @@ -61,12 +61,12 @@ async def api_lnurl_callback( amount = amount if amount < minimum: return LnurlErrorResponse( - reason=f"Amount {amount} is smaller than minimum {min}." + reason=f"Amount {amount} is smaller than minimum {minimum}." ) elif amount > maximum: return LnurlErrorResponse( - reason=f"Amount {amount} is greater than maximum {max}." + reason=f"Amount {amount} is greater than maximum {maximum}." ) comment = request.query_params.get("comment")