From da591d6c1ab3e1129b0c1da3353332ebe98451be Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Wed, 11 Dec 2024 14:05:31 +0100 Subject: [PATCH] fix --- upgrades/drs-2/upgrade.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 upgrades/drs-2/upgrade.go diff --git a/upgrades/drs-2/upgrade.go b/upgrades/drs-2/upgrade.go deleted file mode 100644 index 20c3a94..0000000 --- a/upgrades/drs-2/upgrade.go +++ /dev/null @@ -1,27 +0,0 @@ -package v2_2_0 - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - rollappparamskeeper "github.com/dymensionxyz/dymension-rdk/x/rollappparams/keeper" - rollappparamstypes "github.com/dymensionxyz/dymension-rdk/x/rollappparams/types" -) - -func CreateUpgradeHandler( - rpKeeper rollappparamskeeper.Keeper, - mm *module.Manager, - configurator module.Configurator, -) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - da := rpKeeper.DA(ctx) - version := uint32(2) - params := rollappparamstypes.DefaultParams() - params.Da = da - params.DrsVersion = version - - rpKeeper.SetParams(ctx, params) - - return mm.RunMigrations(ctx, configurator, fromVM) - } -}