From e6c4236eef004f875f5ec6203f269d92c115a399 Mon Sep 17 00:00:00 2001 From: Fmar Date: Mon, 25 Dec 2023 00:02:27 +0100 Subject: [PATCH] lowercase the bolt11 invoice before decoding since Zeus generates uppercase invoices --- lnd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index e513623e..82342c1c 100644 --- a/lnd.go +++ b/lnd.go @@ -8,6 +8,7 @@ import ( "errors" "sort" "time" + "strings" "github.com/getAlby/nostr-wallet-connect/lnd" decodepay "github.com/nbd-wtf/ln-decodepay" @@ -99,7 +100,7 @@ func (svc *LNDService) ListTransactions(ctx context.Context, senderPubkey string var description string var descriptionHash string if payment.PaymentRequest != "" { - paymentRequest, err = decodepay.Decodepay(payment.PaymentRequest) + paymentRequest, err = decodepay.Decodepay(strings.ToLower(payment.PaymentRequest)) if err != nil { svc.Logger.WithFields(logrus.Fields{ "bolt11": payment.PaymentRequest,