Skip to content

Commit

Permalink
test: Register using same owner address on multiple connections (#846) (
Browse files Browse the repository at this point in the history
#849)

(cherry picked from commit f6a9279)

Co-authored-by: Sean King <seantking@users.noreply.github.com>
  • Loading branch information
mergify[bot] and seantking authored Feb 4, 2022
1 parent bb867fd commit 3262969
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,21 @@ func (suite *KeeperTestSuite) TestRegisterInterchainAccount() {
})
}
}

func (suite *KeeperTestSuite) TestRegisterSameOwnerMultipleConnections() {
suite.SetupTest()

owner := TestOwnerAddress

path := NewICAPath(suite.chainA, suite.chainB)
suite.coordinator.SetupConnections(path)

path2 := NewICAPath(suite.chainA, suite.chainC)
suite.coordinator.SetupConnections(path2)

err := suite.chainA.GetSimApp().ICAControllerKeeper.RegisterInterchainAccount(suite.chainA.GetContext(), path.EndpointA.ConnectionID, owner)
suite.Require().NoError(err)

err = suite.chainA.GetSimApp().ICAControllerKeeper.RegisterInterchainAccount(suite.chainA.GetContext(), path2.EndpointA.ConnectionID, owner)
suite.Require().NoError(err)
}

0 comments on commit 3262969

Please sign in to comment.