mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-28 06:58:51 +01:00
cmd/lncli: display zpay32 request in addinvoice response
This commit is contained in:
@@ -658,8 +658,10 @@ func addInvoice(ctx *cli.Context) error {
|
|||||||
|
|
||||||
printRespJson(struct {
|
printRespJson(struct {
|
||||||
RHash string `json:"r_hash"`
|
RHash string `json:"r_hash"`
|
||||||
|
PayReq string `json:"pay_req"`
|
||||||
}{
|
}{
|
||||||
RHash: hex.EncodeToString(resp.RHash),
|
RHash: hex.EncodeToString(resp.RHash),
|
||||||
|
PayReq: resp.PaymentRequest,
|
||||||
})
|
})
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user