From 64ee551f8dc52405bcf59ef354ecc18e080773c2 Mon Sep 17 00:00:00 2001 From: Marko Date: Thu, 28 Jul 2022 13:18:14 +0200 Subject: [PATCH] chore: remove legacy appmodule boiler plate (#12725) * remove legacy appmodule boiler plate * remove legacy code * remove legacy gov rest routes * remove staking querier * fix legacy * remove unused test * add upgrading and changelog entry * Update UPGRADING.md Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com> * fix tests Co-authored-by: Aleksandr Bezobchuk Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com> --- app.go | 1 - app_legacy.go | 1 - 2 files changed, 2 deletions(-) diff --git a/app.go b/app.go index 407449b302e..3196951407c 100644 --- a/app.go +++ b/app.go @@ -274,7 +274,6 @@ func NewSimApp( // app.ModuleManager.SetOrderMigrations(custom order) app.ModuleManager.RegisterInvariants(app.CrisisKeeper) - app.ModuleManager.RegisterRoutes(app.Router(), app.QueryRouter(), app.legacyAmino) // RegisterUpgradeHandlers is used for registering any on-chain upgrades. // Make sure it's called after `app.ModuleManager` and `app.configurator` are set. diff --git a/app_legacy.go b/app_legacy.go index 2a8318363be..7a41c6812cf 100644 --- a/app_legacy.go +++ b/app_legacy.go @@ -419,7 +419,6 @@ func NewSimApp( // app.ModuleManager.SetOrderMigrations(custom order) app.ModuleManager.RegisterInvariants(app.CrisisKeeper) - app.ModuleManager.RegisterRoutes(app.Router(), app.QueryRouter(), encodingConfig.Amino) app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) app.ModuleManager.RegisterServices(app.configurator)