diff --git a/makeinvoice.go b/makeinvoice.go index 81ee391..772643b 100644 --- a/makeinvoice.go +++ b/makeinvoice.go @@ -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)))