Skip to content

Commit

Permalink
fix: Upgrade handler bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed May 21, 2024
1 parent 37b9b93 commit 08a4022
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/upgrades/v8/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ func CreateUpgradeHandler(
sdkCtx := sdk.UnwrapSDKContext(ctx)
logger := sdkCtx.Logger().With("upgrade: ", UpgradeName)

// Leave modules are as-is to avoid running InitGenesis.
logger.Debug("running module migrations ...")
if vm, err := mm.RunMigrations(ctx, configurator, vm); err != nil {
return vm, err
}

// ibc-go vX -> v6
// - skip
// - not implement an ICS27 controller module
Expand Down Expand Up @@ -62,8 +68,6 @@ func CreateUpgradeHandler(
stakingKeeper.SetParams(ctx, params)
}

// Leave modules are as-is to avoid running InitGenesis.
logger.Debug("running module migrations ...")
return mm.RunMigrations(ctx, configurator, vm)
return vm, nil
}
}

0 comments on commit 08a4022

Please sign in to comment.