Skip to content

Commit

Permalink
Merge pull request #146 from PeggyJV/bolten/reorder-v4-upgrade
Browse files Browse the repository at this point in the history
Delete populated module account first
  • Loading branch information
zmanian authored May 13, 2022
2 parents 4f87d4d + 6192e81 commit d3ba28a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ func CreateUpgradeHandler(
// Overwrite the gravity module's version back to 1 so the migration will run to v2
fromVM[gravitytypes.ModuleName] = 1

ctx.Logger().Info("v4 upgrade: normalizing gravity denoms in bank balances")
normalizeGravityDenoms(ctx, bankKeeper)

ctx.Logger().Info("v4 upgrade: removing existing account with module address overlap")
removeModuleAccountOverlap(ctx, accountKeeper, bankKeeper)

ctx.Logger().Info("v4 upgrade: normalizing gravity denoms in bank balances")
normalizeGravityDenoms(ctx, bankKeeper)

ctx.Logger().Info("v4 upgrade: running migrations and exiting handler")
return mm.RunMigrations(ctx, configurator, fromVM)
}
Expand Down

0 comments on commit d3ba28a

Please sign in to comment.