Skip to content

Commit

Permalink
update upgrade handler to avoid unset param (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
iramiller authored Mar 11, 2021
1 parent e805af9 commit 4b59389
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ type appUpgrade struct {

var handlers = map[string]appUpgrade{
"v0.2.0": {},
"v0.2.1": {
"v0.2.1": {},
"v0.2.2": {
Handler: func(app *App, ctx sdk.Context, plan upgradetypes.Plan) {
existing := app.MarkerKeeper.GetParams(ctx)
existing.UnrestrictedDenomRegex = markertypes.DefaultUnrestrictedDenomRegex
app.MarkerKeeper.SetParams(ctx, existing)
app.MarkerKeeper.SetParams(ctx, markertypes.DefaultParams())
},
},

Expand Down

0 comments on commit 4b59389

Please sign in to comment.