Skip to content

Commit

Permalink
lowercase the bolt11 invoice before decoding since Zeus generates upp…
Browse files Browse the repository at this point in the history
…ercase invoices
  • Loading branch information
frnandu committed Dec 24, 2023
1 parent 34c3756 commit e6c4236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"errors"
"sort"
"time"
"strings"

"github.com/getAlby/nostr-wallet-connect/lnd"
decodepay "github.com/nbd-wtf/ln-decodepay"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e6c4236

Please sign in to comment.