From 4b5938939e3f6762fc4a852e3718c87495be76f8 Mon Sep 17 00:00:00 2001 From: Ira Miller <72319+iramiller@users.noreply.github.com> Date: Thu, 11 Mar 2021 16:07:50 -0700 Subject: [PATCH 1/2] update upgrade handler to avoid unset param (#163) --- app/upgrades.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index 619ed310fd..c86c685abb 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -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()) }, }, From 3c3cb8124204a1e30422e0092125be8f3c4e8447 Mon Sep 17 00:00:00 2001 From: Phil Story Date: Fri, 12 Mar 2021 11:23:08 -0700 Subject: [PATCH 2/2] Due to halted chain, 0.2.1 has not run yet. --- app/upgrades.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index c86c685abb..83a72660d6 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -26,8 +26,7 @@ type appUpgrade struct { var handlers = map[string]appUpgrade{ "v0.2.0": {}, - "v0.2.1": {}, - "v0.2.2": { + "v0.2.1": { Handler: func(app *App, ctx sdk.Context, plan upgradetypes.Plan) { app.MarkerKeeper.SetParams(ctx, markertypes.DefaultParams()) },