diff --git a/pkg/chain/chain.go b/pkg/chain/chain.go index 9f5e00b..980da4c 100644 --- a/pkg/chain/chain.go +++ b/pkg/chain/chain.go @@ -5,6 +5,7 @@ import ( "github.com/cosmos/relayer/v2/relayer" "github.com/cosmos/relayer/v2/relayer/chains/cosmos" + "go.uber.org/zap" ) const ( @@ -19,7 +20,7 @@ type Info struct { } func PrepChain(info Info) (*relayer.Chain, error) { - chain := relayer.Chain{} + logger := zap.NewNop() providerConfig := cosmos.CosmosProviderConfig{ ChainID: info.ChainID, Timeout: rpcTimeout, @@ -37,12 +38,12 @@ func PrepChain(info Info) (*relayer.Chain, error) { return nil, err } - chain.ChainProvider = provider + chain := relayer.NewChain(logger, provider, false) err = chain.SetPath(&relayer.PathEnd{ClientID: info.ClientID}) if err != nil { return nil, err } - return &chain, nil + return chain, nil } diff --git a/pkg/ibc/ibc.go b/pkg/ibc/ibc.go index b287c33..5369faa 100644 --- a/pkg/ibc/ibc.go +++ b/pkg/ibc/ibc.go @@ -135,13 +135,6 @@ func GetChannelsInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (Channel return ChannelsInfo{}, fmt.Errorf("Error: %w for %v", err, cdB) } - // test that RPC endpoints are working - if _, _, err := relayer.QueryLatestHeights( - ctx, chainA, chainB, - ); err != nil { - return channelInfo, fmt.Errorf("Error: %w for %v", err, cdA) - } - for i, c := range channelInfo.Channels { var order chantypes.Order