mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-23 17:59:31 +02:00
FIX: internal qrcode scanning check should always check for lowercase (#1713)
fixup
This commit is contained in:
@@ -166,7 +166,7 @@ async def pay_invoice(
|
|||||||
assert internal_invoice is not None
|
assert internal_invoice is not None
|
||||||
if (
|
if (
|
||||||
internal_invoice.amount != invoice.amount_msat
|
internal_invoice.amount != invoice.amount_msat
|
||||||
or internal_invoice.bolt11 != payment_request
|
or internal_invoice.bolt11 != payment_request.lower()
|
||||||
):
|
):
|
||||||
raise PaymentFailure("Invalid invoice.")
|
raise PaymentFailure("Invalid invoice.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user