Skip to content

Commit 4aa647b

Browse files
committed
Fixing upgrade procedure for mainnet
1 parent 5fe6975 commit 4aa647b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/app.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,15 @@ func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
721721
func (app *App) RegisterUpgradeHandlers(cfg module.Configurator) {
722722
const municipalInflationTargetAddress = "fetch1n8d5466h8he33uedc0vsgtahal0mrz55glre03"
723723

724+
// NOTE(pb): The `fetchd-v0.10.7` upgrade handler *MUST* be present due to the mainnent, where this is the *LAST*
725+
// executed upgrade. Presence of this handler is enforced by the `x/upgrade/abci.go#L31-L40` (see the
726+
// https://github.com/fetchai/cosmos-sdk/blob/09cf7baf4297a30acd8d09d9db7dd97d79ffe008/x/upgrade/abci.go#L31-L40).
727+
app.UpgradeKeeper.SetUpgradeHandler("fetchd-v0.10.7", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
728+
return app.mm.RunMigrations(ctx, cfg, fromVM)
729+
})
730+
731+
// NOTE(pb): The `v0.11.2` upgrade handler *MUST* be present due to Dorado-1 testnet, where this is the *LAST*
732+
// executed upgrade. Please see the details in the NOTE above.
724733
app.UpgradeKeeper.SetUpgradeHandler("v0.11.2", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
725734
mobixInfl, err := sdk.NewDecFromStr("0.03")
726735
if err != nil {

0 commit comments

Comments
 (0)