diff --git a/app/app.go b/app/app.go index e896fd1b..e9767f91 100644 --- a/app/app.go +++ b/app/app.go @@ -351,7 +351,9 @@ func New( ) app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp) - app.UpgradeKeeper.SetUpgradeHandler("v1.0.0", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) + + app.UpgradeKeeper.SetUpgradeHandler("v1.0", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { ss, ok := app.ParamsKeeper.GetSubspace(cudoMinttypes.ModuleName) if ok { bpd := ss.GetRaw(ctx, []byte("BlocksPerDay")) @@ -367,13 +369,6 @@ func New( return fromVM, nil }) - app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) - - const upgradeVersion string = "v1.0.1" - app.UpgradeKeeper.SetUpgradeHandler(upgradeVersion, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - return fromVM, nil - }) - // register the staking hooks // NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks app.StakingKeeper = *stakingKeeper.SetHooks(