diff --git a/modules/core/04-channel/types/channel.go b/modules/core/04-channel/types/channel.go index 1e33aedc231..5db884c8463 100644 --- a/modules/core/04-channel/types/channel.go +++ b/modules/core/04-channel/types/channel.go @@ -1,8 +1,6 @@ package types import ( - "slices" - errorsmod "cosmossdk.io/errors" host "github.com/cosmos/ibc-go/v10/modules/core/24-host" @@ -27,7 +25,7 @@ func (ch Channel) ValidateBasic() error { if ch.State == UNINITIALIZED { return ErrInvalidChannelState } - if !slices.Contains([]Order{ORDERED, UNORDERED}, ch.Ordering) { + if ch.Ordering == NONE { return errorsmod.Wrap(ErrInvalidChannelOrdering, ch.Ordering.String()) } if len(ch.ConnectionHops) != 1 {