Skip to content

Commit

Permalink
fix: bump ICS to fix migration issue (#3312)
Browse files Browse the repository at this point in the history
* init commit

* removed stoptime
  • Loading branch information
insumity authored Sep 5, 2024
1 parent 7aec413 commit 0edb784
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
13 changes: 6 additions & 7 deletions app/upgrades/v20/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ func MigrateConsumerRemovalProposal(

msgRemoveConsumer := providertypes.MsgRemoveConsumer{
ConsumerId: rmConsumerID,
StopTime: msg.StopTime,
Signer: govKeeper.GetAuthority(),
}

Expand All @@ -520,16 +519,16 @@ func MigrateConsumerRemovalProposal(
if err != nil {
ctx.Logger().Error(
fmt.Sprintf(
"Could not remove consumer with ID(%s), chainID(%s), and stopTime(%s) as per proposal with ID(%d)",
rmConsumerID, msg.ChainId, msg.StopTime.String(), proposal.Id,
"Could not remove consumer with ID(%s), chainID(%s), as per proposal with ID(%d)",
rmConsumerID, msg.ChainId, proposal.Id,
),
)
return nil // do not stop the migration because of this
}
ctx.Logger().Info(
fmt.Sprintf(
"Consumer with ID(%s), chainID(%s) will stop at stopTime(%s) as per proposal with ID(%d)",
rmConsumerID, msg.ChainId, msg.StopTime.String(), proposal.Id,
"Consumer with ID(%s), chainID(%s) will stop as per proposal with ID(%d)",
rmConsumerID, msg.ChainId, proposal.Id,
),
)
} else {
Expand All @@ -546,8 +545,8 @@ func MigrateConsumerRemovalProposal(
}
ctx.Logger().Info(
fmt.Sprintf(
"Replaced proposal with ID(%d) with MsgRemoveConsumer - consumerID(%s), chainID(%s), spawnTime(%s)",
proposal.Id, rmConsumerID, msg.ChainId, msg.StopTime.String(),
"Replaced proposal with ID(%d) with MsgRemoveConsumer - consumerID(%s), chainID(%s)",
proposal.Id, rmConsumerID, msg.ChainId,
),
)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require (
github.com/cosmos/ibc-apps/modules/rate-limiting/v8 v8.0.0
github.com/cosmos/ibc-go/modules/capability v1.0.1
github.com/cosmos/ibc-go/v8 v8.5.0
github.com/cosmos/interchain-security/v5 v5.0.0-20240904071545-7301916eeafa
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2
github.com/google/gofuzz v1.2.0
github.com/gorilla/mux v1.8.1
github.com/ory/dockertest/v3 v3.11.0
Expand Down
8 changes: 2 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,8 @@ github.com/cosmos/ibc-go/v8 v8.5.0 h1:OjaSXz480JT8ZuMrASxGgS7XzloZ2NuuJPwZB/fKDg
github.com/cosmos/ibc-go/v8 v8.5.0/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo=
github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU=
github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0=
github.com/cosmos/interchain-security/v5 v5.0.0-20240903101737-5f1a27cf0307 h1:9wk1rNi8ZWCn7EXuhVGd5EJYZaWiNpzHi6y+NaiSpZ8=
github.com/cosmos/interchain-security/v5 v5.0.0-20240903101737-5f1a27cf0307/go.mod h1:y3LdR1GPxF8SMFRb/V38OWGZNwEriJDFlka/hoH1GEk=
github.com/cosmos/interchain-security/v5 v5.0.0-20240903195423-6b148c74e014 h1:kV9hr0QCuDAhrqzsjO4UsXLPXEFTpEzOc+JgT/dM/Lc=
github.com/cosmos/interchain-security/v5 v5.0.0-20240903195423-6b148c74e014/go.mod h1:y3LdR1GPxF8SMFRb/V38OWGZNwEriJDFlka/hoH1GEk=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904071545-7301916eeafa h1:AXkCUx2/N1kd6RvvptcKQHwOEkrq5MkJKSqi0jqFwbw=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904071545-7301916eeafa/go.mod h1:y3LdR1GPxF8SMFRb/V38OWGZNwEriJDFlka/hoH1GEk=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2 h1:Z07VkkzgXyiboGTzCBCjlHfOZwdnq/pts3i+LCRn3Kc=
github.com/cosmos/interchain-security/v5 v5.0.0-20240904161413-954f77c8c6f2/go.mod h1:y3LdR1GPxF8SMFRb/V38OWGZNwEriJDFlka/hoH1GEk=
github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo=
github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA=
github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM=
Expand Down

0 comments on commit 0edb784

Please sign in to comment.