Skip to content

Commit

Permalink
revert upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
yoongbok lee committed Jul 11, 2022
1 parent cf7fb90 commit 76b3464
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/upgrade_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package app

import (
"fmt"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"

storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -76,7 +75,6 @@ func (app ShentuApp) setShieldV2UpgradeHandler() {
}

fromVM[shieldtypes.ModuleName] = 1
fromVM[crisistypes.ModuleName] = 0
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
Expand All @@ -87,9 +85,7 @@ func (app ShentuApp) setShieldV2UpgradeHandler() {
}

if upgradeInfo.Name == shieldv2 && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{crisistypes.ModuleName},
}
storeUpgrades := storetypes.StoreUpgrades{}

// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
Expand Down

0 comments on commit 76b3464

Please sign in to comment.