Skip to content

Commit

Permalink
fix: module consensus version is not correctly set when upgrade after…
Browse files Browse the repository at this point in the history
… state sync (#391)
  • Loading branch information
forcodedancing authored Jan 22, 2024
1 parent 634d4f9 commit a6122fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ func (k Keeper) HasHandler(name string) bool {

// ApplyUpgrade will execute the handler associated with the Plan and mark the plan as done.
func (k Keeper) ApplyUpgrade(ctx sdk.Context, plan types.Plan) {
err := k.InitUpgraded(ctx)
if err != nil {
ctx.Logger().Error("failed to init upgraded", "err", err)
return
}

initializer := k.upgradeInitializer[plan.Name]

if initializer != nil {
Expand Down

0 comments on commit a6122fb

Please sign in to comment.