Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add UpdateChannel method to Endpoint #5725

Merged
merged 16 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linter
  • Loading branch information
charleenfei committed Jan 26, 2024
commit fc7811eaef39cc06dd1dd3ebb296e7684541ef7d
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ func (suite *KeeperTestSuite) TestOnChanUpgradeInit() {
{
name: "failure: cannot decode self version string",
malleate: func() {

suite.Require().NoError(path.EndpointA.UpdateChannel(func(channel *channeltypes.Channel) { channel.Version = invalidVersion }))
},
expError: icatypes.ErrUnknownDataType,
Expand Down
2 changes: 1 addition & 1 deletion modules/core/03-connection/keeper/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (suite *KeeperTestSuite) TestVerifyChannelState() {
heightDiff = 5
}, false},
{"verification failed - changed channel state", func() {

channel := path.EndpointA.GetChannel()
channel.State = channeltypes.TRYOPEN
path.EndpointA.SetChannel(channel)
Expand Down
3 changes: 1 addition & 2 deletions modules/core/04-channel/keeper/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ func (suite *KeeperTestSuite) TestChanUpgradeAck() {
{
"connection not found",
func() {

suite.Require().NoError(path.EndpointA.UpdateChannel(func(channel *types.Channel) { channel.ConnectionHops = []string{"connection-100"} }))
},
connectiontypes.ErrConnectionNotFound,
Expand Down Expand Up @@ -2228,7 +2227,7 @@ func (suite *KeeperTestSuite) TestStartFlush() {
{
"connection not found",
func() {
suite.Require().NoError(path.EndpointB.UpdateChannel(func(channel *types.Channel) { channel.ConnectionHops[0] = ibctesting.InvalidID }))
suite.Require().NoError(path.EndpointB.UpdateChannel(func(channel *types.Channel) { channel.ConnectionHops[0] = ibctesting.InvalidID }))
},
connectiontypes.ErrConnectionNotFound,
},
Expand Down