diff --git a/app/app.go b/app/app.go index f6c16fc19b..ce0bf01fa1 100644 --- a/app/app.go +++ b/app/app.go @@ -128,6 +128,7 @@ var Upgrades = []upgrades.Upgrade{ v0_5_2.Upgrade, upgrades.Upgrade_0_6_0, upgrades.Upgrade_0_6_0_RC3, + upgrades.Upgrade_0_6_1, } // 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 c6ddcb1be3..1b8a13c74e 100644 --- a/app/upgrades/empty_upgrades.go +++ b/app/upgrades/empty_upgrades.go @@ -67,3 +67,13 @@ var Upgrade_0_6_0_RC3 = Upgrade{ }, // create CreateUpgradeHandler in upgrades.go below StoreUpgrades: store.StoreUpgrades{}, // StoreUpgrades has 3 fields: Added/Renamed/Deleted any module that fits these description should be added in the way below } + +var Upgrade_0_6_1 = Upgrade{ + UpgradeName: "v0.6.1", // upgrade name defined few lines above + CreateUpgradeHandler: func(m *module.Manager, c module.Configurator, bapm BaseAppParamManager, lk *keepers.LavaKeepers) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + return m.RunMigrations(ctx, c, vm) + } + }, // create CreateUpgradeHandler in upgrades.go below + StoreUpgrades: store.StoreUpgrades{}, // StoreUpgrades has 3 fields: Added/Renamed/Deleted any module that fits these description should be added in the way below +}