Skip to content

Commit

Permalink
fix: set explicit allowed clients for versions < v8.1 (cosmos#5768)
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega authored Jan 30, 2024
1 parent a1f0dfb commit 7df8644
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/tests/core/02-client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/cosmos/ibc-go/e2e/dockerutil"
"github.com/cosmos/ibc-go/e2e/testsuite"
"github.com/cosmos/ibc-go/e2e/testvalues"
wasmtypes "github.com/cosmos/ibc-go/modules/light-clients/08-wasm/types"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
Expand Down Expand Up @@ -447,6 +448,9 @@ func (s *ClientTestSuite) TestAllowedClientsParam() {
allowedClients := s.QueryAllowedClients(ctx, chainA)

defaultAllowedClients := clienttypes.DefaultAllowedClients
if !testvalues.AllowAllClientsWildcardFeatureReleases.IsSupported(chainAVersion) {
defaultAllowedClients = []string{ibcexported.Solomachine, ibcexported.Tendermint, ibcexported.Localhost, wasmtypes.Wasm}
}
if !testvalues.LocalhostClientFeatureReleases.IsSupported(chainAVersion) {
defaultAllowedClients = slices.DeleteFunc(defaultAllowedClients, func(s string) bool { return s == ibcexported.Localhost })
}
Expand Down

0 comments on commit 7df8644

Please sign in to comment.