From 43963ea87497fd13b8cddeb5a4ca993bc774072a Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Fri, 22 Jan 2021 12:40:36 -0500 Subject: [PATCH] change return type of GetPublishedBlockchains to []ids.ID --- api/ipcs/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/ipcs/client.go b/api/ipcs/client.go index c4011dfe5e2b..4bbdee3f50b0 100644 --- a/api/ipcs/client.go +++ b/api/ipcs/client.go @@ -7,6 +7,7 @@ import ( "time" "github.com/ava-labs/avalanchego/api" + "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/rpc" ) @@ -41,8 +42,8 @@ func (c *Client) UnpublishBlockchain(blockchainID string) (bool, error) { } // GetPublishedBlockchains requests the node to get blockchains being published -func (c *Client) GetPublishedBlockchains() (*GetPublishedBlockchainsReply, error) { +func (c *Client) GetPublishedBlockchains() ([]ids.ID, error) { res := &GetPublishedBlockchainsReply{} err := c.requester.SendRequest("getPublishedBlockchains", nil, res) - return res, err + return res.Chains, err }