From 34c3756ee5a3ee04d2125dcf400c9e21e09c924b Mon Sep 17 00:00:00 2001 From: Fmar Date: Sun, 24 Dec 2023 23:46:35 +0100 Subject: [PATCH] lowercase the bolt11 invoice before decoding since Zeus generates uppercase invoices --- handle_lookup_invoice_request.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handle_lookup_invoice_request.go b/handle_lookup_invoice_request.go index 9217bfe4..358cc991 100644 --- a/handle_lookup_invoice_request.go +++ b/handle_lookup_invoice_request.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "strings" "github.com/nbd-wtf/go-nostr" decodepay "github.com/nbd-wtf/ln-decodepay" @@ -64,7 +65,7 @@ func (svc *Service) HandleLookupInvoiceEvent(ctx context.Context, request *Nip47 paymentHash := lookupInvoiceParams.PaymentHash if paymentHash == "" { - paymentRequest, err := decodepay.Decodepay(lookupInvoiceParams.Invoice) + paymentRequest, err := decodepay.Decodepay(strings.ToLower(lookupInvoiceParams.Invoice)) if err != nil { svc.Logger.WithFields(logrus.Fields{ "eventId": event.ID,