Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jul 16, 2024
1 parent 7580950 commit 97033a0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,15 @@ func (app *App) registerUpgrade0_3_1(_ upgradetypes.Plan) {
const planName = "v0.3.1"

app.UpgradeKeeper.SetUpgradeHandler(planName,
<<<<<<< HEAD
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("Upgrade handler execution", "name", planName)
=======
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
sdkCtx := sdk.UnwrapSDKContext(ctx)

// migrate old proposals
govMigrator := govkeeper.NewMigrator(&app.GovKeeper, app.GetSubspace(govtypes.ModuleName))
err := govMigrator.Migrate2to3(sdkCtx)
err := govMigrator.Migrate2to3(ctx)
if err != nil {
panic("failed to migrate governance module")
}

sdkCtx.Logger().Info("Upgrade handler execution", "name", planName)
>>>>>>> 2965d45 (fix: Add gov proposal migration in v0.3.1 upgrade handler (#478))
ctx.Logger().Info("Upgrade handler execution", "name", planName)
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
Expand Down

0 comments on commit 97033a0

Please sign in to comment.