invoices: return payment address from addholdinvoice

This commit is contained in:
ErikEk
2021-07-17 02:33:00 +02:00
parent 7176a212f7
commit 850dee37ee
6 changed files with 67 additions and 10 deletions

View File

@@ -252,11 +252,7 @@ func addHoldInvoice(ctx *cli.Context) error {
return err
}
printJSON(struct {
PayReq string `json:"pay_req"`
}{
PayReq: resp.PaymentRequest,
})
printRespJSON(resp)
return nil
}