mirror of https://github.com/bumi/lntip
Make lightning address work
This commit is contained in:
parent
561610a7b9
commit
5b28d43358
2
lnme.go
2
lnme.go
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue