forked from heierbtc/satdress-mirror
Fix wrong text for invoice generation
This commit is contained in:
parent
cfba3fa890
commit
e08b9519e1
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user