Skip to content

Commit 3262969

Browse files
test: Register using same owner address on multiple connections (#846) (#849)
(cherry picked from commit f6a9279) Co-authored-by: Sean King <seantking@users.noreply.github.com>
1 parent bb867fd commit 3262969

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/apps/27-interchain-accounts/controller/keeper/account_test.go

+18
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,21 @@ func (suite *KeeperTestSuite) TestRegisterInterchainAccount() {
8282
})
8383
}
8484
}
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+
}

0 commit comments

Comments
 (0)