cmd/lncli: display zpay32 request in addinvoice response

This commit is contained in:
Olaoluwa Osuntokun
2017-01-02 15:37:10 -08:00
parent 19bf044bdb
commit 5a9be3f812

View File

@@ -658,8 +658,10 @@ func addInvoice(ctx *cli.Context) error {
printRespJson(struct {
RHash string `json:"r_hash"`
PayReq string `json:"pay_req"`
}{
RHash: hex.EncodeToString(resp.RHash),
PayReq: resp.PaymentRequest,
})
return nil