Skip to content

Commit

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

"github.com/avast/retry-go/v4"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/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 @@ -468,16 +467,15 @@ 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 (
denomTrace *transfertypes.DenomTrace
clientsResp clienttypes.IdentifiedClientStates
err error
)

if err = retry.Do(func() error {
denomTrace, err = src.ChainProvider.QueryDenomTrace(ctx, "stake")
clientsResp, err = src.ChainProvider.QueryClients(ctx)
src.log.Info(
"For fun",
zap.String("clientsResp", denomTrace.BaseDenom),
zap.Any("clientsResp", clientsResp),
)
if err != nil {
return err
Expand Down

0 comments on commit d5ae52a

Please sign in to comment.