Rename param to description
This commit is contained in:
parent
e09b7a59b3
commit
667128c341
@ -3,7 +3,7 @@ package lightning
|
||||
type Bolt11 string
|
||||
|
||||
type Lightning interface {
|
||||
CreateInvoice(msats int64, comment string) (Bolt11, error)
|
||||
CreateInvoice(msats int64, description string) (Bolt11, error)
|
||||
}
|
||||
|
||||
type LightningImpl struct {
|
||||
|
@ -53,10 +53,10 @@ func WithPhoenixdWebhookUrl(webhookUrl string) func(*Phoenixd) *Phoenixd {
|
||||
}
|
||||
}
|
||||
|
||||
func (p *Phoenixd) CreateInvoice(msats int64, comment string) (lightning.Bolt11, error) {
|
||||
func (p *Phoenixd) CreateInvoice(msats int64, description string) (lightning.Bolt11, error) {
|
||||
values := url.Values{}
|
||||
values.Add("amountSat", strconv.FormatInt(msats/1000, 10))
|
||||
values.Add("description", comment)
|
||||
values.Add("description", description)
|
||||
if p.webhookUrl != "" {
|
||||
values.Add("webhookUrl", p.webhookUrl)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user