Skip to content

Commit

Permalink
Fix for incorrect upgrade name #399
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizualni authored Aug 15, 2022
1 parent e78129c commit 9f8f4d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@ func New(
},
)

// TODO: this is bug. Upgrade names should be as vMAJOR.MINOR like above.
upgradeK.SetUpgradeHandler(
semverVersion,
func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

app.UpgradeKeeper = upgradeK

// register the staking hooks
Expand Down

0 comments on commit 9f8f4d9

Please sign in to comment.