Skip to content

Commit

Permalink
Create Mango rc2 handler. (#888)
Browse files Browse the repository at this point in the history
* Move the mango upgrade to mango-rc2 and add an empty mango upgrade since that's what actually happened for v1.11.1-rc1.

* Add changelog entry.

* Keep the code in the original mango upgrade (as well a the mango-rc2 upgrade).

* Clarify changelog entry.

* Fix changelog entry.
  • Loading branch information
dwedul-figure authored Jun 22, 2022
1 parent c040d56 commit 4739b0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

* Add new `msgfees` `NhashPerUsdMil` default param to param space store on upgrade (PR [#875](https://github.com/provenance-io/provenance/issues/875))
* Add `mango-rc2` upgrade handler to do a couple migration pieces that were missed in v1.11.1-rc1, but needed [PR 888](https://github.com/provenance-io/provenance/pull/888).

---

Expand Down
9 changes: 9 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ var handlers = map[string]appUpgrade{
return versionMap, nil
},
}, // upgrade for 1.11.x
"mango-rc2": {
Handler: func(app *App, ctx sdk.Context, plan upgradetypes.Plan) (module.VersionMap, error) {
params := app.MsgFeesKeeper.GetParams(ctx)
app.MsgFeesKeeper.SetParams(ctx, params)
versionMap := app.UpgradeKeeper.GetModuleVersionMap(ctx)
return versionMap, nil
},
}, // upgrade for 1.11.1-rc2

// TODO - Add new upgrade definitions here.
}

Expand Down

0 comments on commit 4739b0f

Please sign in to comment.