From fe4986823d468b56e2f7f9d411f9c72d6f8e8723 Mon Sep 17 00:00:00 2001 From: olegfomenko Date: Thu, 29 Aug 2024 18:28:04 +0300 Subject: [PATCH] adding v1.1.4-rc2 upgrade handler --- app/app.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/app.go b/app/app.go index 52f26451..1f09dea8 100644 --- a/app/app.go +++ b/app/app.go @@ -1123,6 +1123,16 @@ func New( }, ) + app.UpgradeKeeper.SetUpgradeHandler( + "v1.1.4-rc2", + func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + params := app.RootupdaterKeeper.GetParams(ctx) + params.ContractAddress = "0xc1534912902BBe8C54626e2D69288C76a843bc0E" + app.RootupdaterKeeper.SetParams(ctx, params) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) + if loadLatest { if err := app.LoadLatestVersion(); err != nil { tmos.Exit(err.Error())