@@ -5,19 +5,24 @@ import (
5
5
"testing"
6
6
7
7
sdk "github.com/cosmos/cosmos-sdk/types"
8
+
8
9
clienttypes "github.com/cosmos/ibc-go/modules/core/02-client/types"
9
10
channeltypes "github.com/cosmos/ibc-go/modules/core/04-channel/types"
10
11
commitmenttypes "github.com/cosmos/ibc-go/modules/core/23-commitment/types"
11
12
host "github.com/cosmos/ibc-go/modules/core/24-host"
12
13
ibctmtypes "github.com/cosmos/ibc-go/modules/light-clients/07-tendermint/types"
13
14
ibctesting "github.com/cosmos/ibc-go/testing"
15
+
14
16
"github.com/cosmos/interchain-security/app"
15
17
"github.com/cosmos/interchain-security/testutil/simapp"
16
18
"github.com/cosmos/interchain-security/x/ccv/child"
17
19
"github.com/cosmos/interchain-security/x/ccv/child/types"
18
20
childtypes "github.com/cosmos/interchain-security/x/ccv/child/types"
19
21
parenttypes "github.com/cosmos/interchain-security/x/ccv/parent/types"
20
22
ccv "github.com/cosmos/interchain-security/x/ccv/types"
23
+
24
+ tmtypes "github.com/tendermint/tendermint/types"
25
+
21
26
"github.com/stretchr/testify/suite"
22
27
)
23
28
@@ -62,7 +67,11 @@ func (suite *ChildTestSuite) SetupTest() {
62
67
)
63
68
suite .parentConsState = suite .parentChain .LastHeader .ConsensusState ()
64
69
65
- childGenesis := types .NewInitialGenesisState (suite .parentClient , suite .parentConsState )
70
+ // mocking the fact that child chain validators should be parent chain validators
71
+ // TODO: Fix testing suite so we can initialize both chains with the same validator set
72
+ valUpdates := tmtypes .TM2PB .ValidatorUpdates (suite .parentChain .Vals )
73
+
74
+ childGenesis := types .NewInitialGenesisState (suite .parentClient , suite .parentConsState , valUpdates )
66
75
suite .childChain .App .(* app.App ).ChildKeeper .InitGenesis (suite .childChain .GetContext (), childGenesis )
67
76
68
77
// create the ccv path and set child's clientID to genesis client
0 commit comments