From 0d9c6c594d63d7f44ac201d1bbe8264f497791e5 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Wed, 8 May 2024 16:47:51 +0200 Subject: [PATCH] chore: update godoc and duplicate imports --- modules/core/ante/ante.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/core/ante/ante.go b/modules/core/ante/ante.go index 7b22df8475d..454cf029ad0 100644 --- a/modules/core/ante/ante.go +++ b/modules/core/ante/ante.go @@ -5,7 +5,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" "github.com/cosmos/ibc-go/v8/modules/core/exported" @@ -94,8 +93,9 @@ func (rrd RedundantRelayDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula return next(ctx, tx, simulate) } -// checkTxUpdateClient runs a subset of ibc client update logic to be used in within the RedunantRelayerDecorator AnteHandler. -// The following function performs client message verification and state updates only. Note that misbehaviour checks are ommited. +// checkTxUpdateClient runs a subset of ibc client update logic to be used specifically within the RedundantRelayDecorator AnteHandler. +// The following function performs ibc client message verification for CheckTx only and state updates in both CheckTx and ReCheckTx. +// Note that misbehaviour checks are omitted. func (rrd RedundantRelayDecorator) checkTxUpdateClient(ctx sdk.Context, msg *clienttypes.MsgUpdateClient) error { clientMsg, err := clienttypes.UnpackClientMessage(msg.ClientMessage) if err != nil { @@ -103,7 +103,7 @@ func (rrd RedundantRelayDecorator) checkTxUpdateClient(ctx sdk.Context, msg *cli } if status := rrd.k.ClientKeeper.GetClientStatus(ctx, msg.ClientId); status != exported.Active { - return errorsmod.Wrapf(types.ErrClientNotActive, "cannot update client (%s) with status %s", msg.ClientId, status) + return errorsmod.Wrapf(clienttypes.ErrClientNotActive, "cannot update client (%s) with status %s", msg.ClientId, status) } clientModule, found := rrd.k.ClientKeeper.Route(msg.ClientId)