fix: broken lnurl error message on amount limits (#96)
This commit is contained in:
parent
5a0d7ee4ed
commit
f9ee067e88
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue