Skip to content

Commit

Permalink
fix: host chan open try test
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Jan 16, 2024
1 parent e059759 commit 6f79ad3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() {
{
"success - previous metadata is different",
func() {
// create a new channel and set it in state
ch := channeltypes.NewChannel(channeltypes.CLOSED, channeltypes.ORDERED, channeltypes.NewCounterparty(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID), []string{path.EndpointA.ConnectionID}, TestVersion)
suite.chainB.GetSimApp().GetIBCKeeper().ChannelKeeper.SetChannel(suite.chainB.GetContext(), path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, ch)

// set the active channelID in state
suite.chainB.GetSimApp().ICAHostKeeper.SetActiveChannelID(suite.chainB.GetContext(), path.EndpointB.ConnectionID, path.EndpointA.ChannelConfig.PortID, path.EndpointB.ChannelID)

Expand All @@ -112,6 +108,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() {
versionBytes, err := icatypes.ModuleCdc.MarshalJSON(&metadata)
suite.Require().NoError(err)

channel.State = channeltypes.CLOSED
channel.Version = string(versionBytes)

path.EndpointB.SetChannel(*channel)
Expand Down

0 comments on commit 6f79ad3

Please sign in to comment.