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) - } -}