From ef965f1741f7b0378b388c09df0ef95d78d933a9 Mon Sep 17 00:00:00 2001 From: sangier Date: Mon, 13 Nov 2023 19:39:12 +0100 Subject: [PATCH] fix: comment --- modules/core/04-channel/keeper/packet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index dc24ecfff65..1d8c67665be 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -132,8 +132,7 @@ func (k Keeper) RecvPacket( return errorsmod.Wrapf(types.ErrInvalidChannelState, "expected channel state to be one of [%s, %s], but got %s", types.OPEN, types.FLUSHING, channel.State) } - // in the case of the channel being in FLUSHING we need to ensure that the the counterparty last sequence send - // is less than or equal to the packet sequence. + // in the case of the channel being in FLUSHING we need to ensure that the counterPartyUpgrade exist if channel.State == types.FLUSHING { _, found := k.GetCounterpartyUpgrade(ctx, packet.GetDestPort(), packet.GetDestChannel()) if !found {