Skip to content

Commit

Permalink
fix: set explicit allowed clients for versions < v8.1 (#5768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez 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.