Skip to content

Commit 6192e81

Browse files
committed
Delete populated module account first
1 parent 4f87d4d commit 6192e81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/upgrades/v4/upgrades.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ func CreateUpgradeHandler(
3535
// Overwrite the gravity module's version back to 1 so the migration will run to v2
3636
fromVM[gravitytypes.ModuleName] = 1
3737

38-
ctx.Logger().Info("v4 upgrade: normalizing gravity denoms in bank balances")
39-
normalizeGravityDenoms(ctx, bankKeeper)
40-
4138
ctx.Logger().Info("v4 upgrade: removing existing account with module address overlap")
4239
removeModuleAccountOverlap(ctx, accountKeeper, bankKeeper)
4340

41+
ctx.Logger().Info("v4 upgrade: normalizing gravity denoms in bank balances")
42+
normalizeGravityDenoms(ctx, bankKeeper)
43+
4444
ctx.Logger().Info("v4 upgrade: running migrations and exiting handler")
4545
return mm.RunMigrations(ctx, configurator, fromVM)
4646
}

0 commit comments

Comments
 (0)