From 351c4cf3153b32b4db54807ee8b468b3f0b306bc Mon Sep 17 00:00:00 2001 From: Alyak Date: Fri, 13 Dec 2024 11:54:13 +0000 Subject: [PATCH] use unordered check --- modules/core/04-channel/v2/keeper/keeper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/04-channel/v2/keeper/keeper.go b/modules/core/04-channel/v2/keeper/keeper.go index 6397568973d..febc06a1f24 100644 --- a/modules/core/04-channel/v2/keeper/keeper.go +++ b/modules/core/04-channel/v2/keeper/keeper.go @@ -221,8 +221,8 @@ func (k *Keeper) aliasV1Channel(ctx context.Context, portID, channelID string) ( return types.Channel{}, false } // Do not allow channel to be converted into a version 2 channel - // if the channel is not OPEN or if it is ORDERED - if channel.State != channeltypesv1.OPEN || channel.Ordering == channeltypesv1.ORDERED { + // if the channel is not OPEN or if it is not UNORDERED + if channel.State != channeltypesv1.OPEN || channel.Ordering != channeltypesv1.UNORDERED { return types.Channel{}, false } connection, ok := k.connectionKeeper.GetConnection(ctx, channel.ConnectionHops[0])