Skip to content

Commit

Permalink
adding v1.1.2 upgrade info
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed May 27, 2024
1 parent 1ad7ce0 commit 06068af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,17 @@ func New(
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v1.1.2",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
params := app.FeeMarketKeeper.GetParams(ctx)
params.BaseFee = sdk.NewIntFromUint64(0)
params.NoBaseFee = true
app.FeeMarketKeeper.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 06068af

Please sign in to comment.