Skip to content

Commit 8c842d9

Browse files
authored
fix: x/gmp upgrade fix for v0.5.0 (#530)
* fix 0.5.0 upgrade * set x/gmp defaultgasestimate param in upgrade * cleanup
1 parent 2651ff2 commit 8c842d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/upgrades.go

+4
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ func (app *App) registerUpgrade0_5_0(upgradeInfo upgradetypes.Plan) {
342342
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
343343
sdkCtx := sdk.UnwrapSDKContext(ctx)
344344
sdkCtx.Logger().Info("Upgrade handler execution", "name", planName)
345+
346+
params := app.GmpKeeper.GetParams(sdkCtx)
347+
params.DefaultGasEstimate = gmptypes.DefaultParams().DefaultGasEstimate
348+
app.GmpKeeper.SetParams(sdkCtx, params)
345349
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
346350
},
347351
)

0 commit comments

Comments
 (0)