From cb38999298fd99fd0c26e0744c522a2f1cdac15a Mon Sep 17 00:00:00 2001 From: vuong Date: Tue, 21 Nov 2023 13:08:30 +0700 Subject: [PATCH] minor --- app/upgrades/prefix/constants.go | 17 ----------------- app/upgrades/prefix/upgrade.go | 24 ------------------------ 2 files changed, 41 deletions(-) delete mode 100644 app/upgrades/prefix/constants.go delete mode 100644 app/upgrades/prefix/upgrade.go diff --git a/app/upgrades/prefix/constants.go b/app/upgrades/prefix/constants.go deleted file mode 100644 index 4a48be069..000000000 --- a/app/upgrades/prefix/constants.go +++ /dev/null @@ -1,17 +0,0 @@ -package v7 - -import ( - store "github.com/cosmos/cosmos-sdk/store/types" - "github.com/notional-labs/composable/v6/app/upgrades" -) - -const ( - // UpgradeName defines the on-chain upgrade name for the composable upgrade. - UpgradeName = "prefix-change" -) - -var Upgrade = upgrades.Upgrade{ - UpgradeName: UpgradeName, - CreateUpgradeHandler: CreateUpgradeHandler, - StoreUpgrades: store.StoreUpgrades{}, -} diff --git a/app/upgrades/prefix/upgrade.go b/app/upgrades/prefix/upgrade.go deleted file mode 100644 index 64bb6df4f..000000000 --- a/app/upgrades/prefix/upgrade.go +++ /dev/null @@ -1,24 +0,0 @@ -package v7 - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - - "github.com/notional-labs/composable/v6/app/keepers" - "github.com/notional-labs/composable/v6/app/upgrades" -) - -func CreateUpgradeHandler( - mm *module.Manager, - configurator module.Configurator, - _ upgrades.BaseAppParamManager, - cdc codec.Codec, - keepers *keepers.AppKeepers, -) upgradetypes.UpgradeHandler { - return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - return mm.RunMigrations(ctx, configurator, vm) - } -}