Skip to content

Commit

Permalink
do not fail for a single chain (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor authored May 13, 2024
1 parent 6e77828 commit 69d79d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cosmos/chain-registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ func (rc *chainRegistryClient) ChainNameForChainID(ctx context.Context, targetCh
// NOTE: No retries because GetChainInfo manages that for us.
chainInfo, err := rc.ChainInfo(ctx, chainName)
if err != nil {
rc.log.Error().Err(err).Str("chain_name", chainName).Msg("error fetching chain information during chain id refresh")
return "", err
rc.log.Warn().Err(err).Str("chain_name", chainName).Msg("error fetching chain information during chain id refresh, this chain will not be supported")
}

chainID = chainInfo.ChainID

// Set in cache
Expand Down

0 comments on commit 69d79d3

Please sign in to comment.