File tree 1 file changed +18
-0
lines changed
modules/apps/27-interchain-accounts/controller/keeper
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -82,3 +82,21 @@ func (suite *KeeperTestSuite) TestRegisterInterchainAccount() {
82
82
})
83
83
}
84
84
}
85
+
86
+ func (suite * KeeperTestSuite ) TestRegisterSameOwnerMultipleConnections () {
87
+ suite .SetupTest ()
88
+
89
+ owner := TestOwnerAddress
90
+
91
+ path := NewICAPath (suite .chainA , suite .chainB )
92
+ suite .coordinator .SetupConnections (path )
93
+
94
+ path2 := NewICAPath (suite .chainA , suite .chainC )
95
+ suite .coordinator .SetupConnections (path2 )
96
+
97
+ err := suite .chainA .GetSimApp ().ICAControllerKeeper .RegisterInterchainAccount (suite .chainA .GetContext (), path .EndpointA .ConnectionID , owner )
98
+ suite .Require ().NoError (err )
99
+
100
+ err = suite .chainA .GetSimApp ().ICAControllerKeeper .RegisterInterchainAccount (suite .chainA .GetContext (), path2 .EndpointA .ConnectionID , owner )
101
+ suite .Require ().NoError (err )
102
+ }
You can’t perform that action at this time.
0 commit comments