diff --git a/app/app.go b/app/app.go index e9d1484547..d219fb6c69 100644 --- a/app/app.go +++ b/app/app.go @@ -168,6 +168,7 @@ const ( var Upgrades = []upgrades.Upgrade{ upgrades.Upgrade_3_1_0, upgrades.Upgrade_4_0_0, + upgrades.Upgrade_4_1_0, } // this line is used by starport scaffolding # stargate/wasm/app/enabledProposals diff --git a/app/upgrades/empty_upgrades.go b/app/upgrades/empty_upgrades.go index 0a4ad8ec05..3cb03b74e0 100644 --- a/app/upgrades/empty_upgrades.go +++ b/app/upgrades/empty_upgrades.go @@ -51,3 +51,9 @@ var Upgrade_4_0_0 = Upgrade{ CreateUpgradeHandler: defaultUpgradeHandler, StoreUpgrades: store.StoreUpgrades{}, } + +var Upgrade_4_1_0 = Upgrade{ + UpgradeName: "v4.1.0", + CreateUpgradeHandler: defaultUpgradeHandler, + StoreUpgrades: store.StoreUpgrades{}, +} diff --git a/x/protocol/module.go b/x/protocol/module.go index cfabb651cf..456c0e0e58 100644 --- a/x/protocol/module.go +++ b/x/protocol/module.go @@ -221,10 +221,14 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { // panic:ok: at start up, migration cannot proceed anyhow panic(fmt.Errorf("%s: failed to register migration to v24: %w", types.ModuleName, err)) } + if err := cfg.RegisterMigration(types.ModuleName, 24, migrator.MigrateVersion); err != nil { + // panic:ok: at start up, migration cannot proceed anyhow + panic(fmt.Errorf("%s: failed to register migration to v25: %w", types.ModuleName, err)) + } } // ConsensusVersion implements ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 24 } +func (AppModule) ConsensusVersion() uint64 { return 25 } // RegisterInvariants registers the capability module's invariants. func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} diff --git a/x/protocol/types/params.go b/x/protocol/types/params.go index 5ba305a8ee..772f2ab9e5 100644 --- a/x/protocol/types/params.go +++ b/x/protocol/types/params.go @@ -12,7 +12,7 @@ import ( var _ paramtypes.ParamSet = (*Params)(nil) const ( - TARGET_VERSION = "4.0.0" + TARGET_VERSION = "4.1.0" MIN_VERSION = "3.1.0" )