Skip to content

Commit

Permalink
change return type of GetPublishedBlockchains to []ids.ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine committed Jan 22, 2021
1 parent 0d1d06a commit 43963ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/ipcs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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
}

0 comments on commit 43963ea

Please sign in to comment.