Skip to content

Commit

Permalink
adding v1.1.4-rc2 upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Aug 29, 2024
1 parent 2cbb436 commit fe49868
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit fe49868

Please sign in to comment.