Skip to content

Commit

Permalink
test: Register using same owner address on multiple connections (cosm…
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking authored Feb 4, 2022
1 parent ec36c75 commit f6a9279
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 f6a9279

Please sign in to comment.