Fix wrong text for invoice generation

This commit is contained in:
Gregor Pogacnik 2022-01-20 14:36:49 +01:00
parent cfba3fa890
commit e08b9519e1

View File

@ -61,12 +61,12 @@ func makeInvoice(
Msatoshi: int64(msat),
Backend: backend,
Label: s.Domain + "/" + strconv.FormatInt(time.Now().Unix(), 16),
Label: params.Domain + "/" + strconv.FormatInt(time.Now().Unix(), 16),
}
if pin != nil {
// use this as the description
mip.Description = fmt.Sprintf("%s's PIN for '%s@%s' lightning address: %s", s.Domain, params.Name, s.Domain, *pin)
mip.Description = fmt.Sprintf("%s's PIN for '%s@%s' lightning address: %s", params.Domain, params.Name, params.Domain, *pin)
} else {
// make the lnurlpay description_hash
h := sha256.Sum256([]byte(makeMetadata(params)))