Make lightning address work

This commit is contained in:
Gregor Pogačnik 2021-09-26 21:36:21 +00:00
parent 561610a7b9
commit 5b28d43358
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ func main() {
}
sats := msats / 1000 // we need sats
metadataHash := sha256.Sum256([]byte(lnurlMetadata))
invoice, err := lnClient.AddInvoice(sats, lightningAddress, metadataHash[:])
invoice, err := lnClient.AddInvoice(sats, lnurlMetadata, metadataHash[:])
lnurlPayResponse2 := lnurl.LNURLPayResponse2{
LNURLResponse: lnurl.LNURLResponse{Status: "OK"},
PR: invoice.PaymentRequest,