Skip to content

Commit

Permalink
Merge pull request #137 from mysteriumnetwork/supported-chains
Browse files Browse the repository at this point in the history
Expose supported chains from multichain client
  • Loading branch information
vkuznecovas authored Sep 24, 2021
2 parents 8047e40 + 609ae9c commit 454a8d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/multichain_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ func (mbc *MultichainBlockchainClient) getClientByChain(chainID int64) (BC, erro
return nil, ErrUnknownChain
}

func (mbc *MultichainBlockchainClient) GetSupportedChains() []int64 {
res := make([]int64, 0)
for k := range mbc.clients {
res = append(res, k)
}

return res
}

func (mbc *MultichainBlockchainClient) GetHermesFee(chainID int64, hermesAddress common.Address) (uint16, error) {
bc, err := mbc.getClientByChain(chainID)
if err != nil {
Expand Down

0 comments on commit 454a8d2

Please sign in to comment.