From f986bd3066b9044ae1a44534908bdf4b381bbd1b Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Thu, 3 Jan 2019 15:01:51 +0100 Subject: [PATCH] split response to reuse type --- jsonrpc/daemon_types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsonrpc/daemon_types.go b/jsonrpc/daemon_types.go index 75bfb8d..936fcd4 100644 --- a/jsonrpc/daemon_types.go +++ b/jsonrpc/daemon_types.go @@ -312,7 +312,7 @@ type ChannelNewResponse struct { Txid string `json:"txid"` } -type ChannelListResponse []struct { +type ChannelListSingleResponse struct { Address string `json:"address"` Amount decimal.Decimal `json:"amount"` BlocksToExpiration int `json:"blocks_to_expiration"` @@ -334,6 +334,8 @@ type ChannelListResponse []struct { Value *lbryschema.Claim `json:"value"` } +type ChannelListResponse []ChannelListSingleResponse + type WalletListResponse []string type PublishResponse struct {