Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
expertdicer committed Jul 30, 2023
1 parent a37eb05 commit 149c32e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions relayer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/avast/retry-go/v4"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
tmclient "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
Expand Down Expand Up @@ -467,15 +468,16 @@ func MustGetHeight(h ibcexported.Height) clienttypes.Height {
// state that will be created if there exist no matches.
func findMatchingClient(ctx context.Context, src, dst *Chain, newClientState ibcexported.ClientState) (string, error) {
var (
testCoins sdk.Coins
clientsResp clienttypes.IdentifiedClientStates
err error
)

if err = retry.Do(func() error {
clientsResp, err = src.ChainProvider.QueryClients(ctx)
testCoins, err = src.ChainProvider.QueryBalance(ctx, "test")
src.log.Info(
"For fun",
zap.Int("clientsResp", clientsResp.Len()),
zap.Any("clientsResp", testCoins),
)
if err != nil {
return err
Expand Down

0 comments on commit 149c32e

Please sign in to comment.