Skip to content

Commit

Permalink
fix: add router module to upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
yaruwang committed Oct 6, 2021
1 parent b162999 commit 2deb3ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import (
dbm "github.com/tendermint/tm-db"

gaiaappparams "github.com/cosmos/gaia/v6/app/params"
router "github.com/strangelove-ventures/packet-forward-middleware/router"
"github.com/strangelove-ventures/packet-forward-middleware/router"
routerkeeper "github.com/strangelove-ventures/packet-forward-middleware/router/keeper"
routertypes "github.com/strangelove-ventures/packet-forward-middleware/router/types"

Expand Down Expand Up @@ -472,6 +472,7 @@ func NewGaiaApp(
stakingtypes.ModuleName,
liquiditytypes.ModuleName,
ibchost.ModuleName,
routertypes.ModuleName,
)
app.mm.SetOrderEndBlockers(
crisistypes.ModuleName,
Expand Down Expand Up @@ -575,6 +576,7 @@ func NewGaiaApp(
// override versions for _new_ modules as to not skip InitGenesis
fromVM[authz.ModuleName] = 0
fromVM[feegrant.ModuleName] = 0
fromVM[routertypes.ModuleName] = 0

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
Expand All @@ -587,7 +589,7 @@ func NewGaiaApp(

if upgradeInfo.Name == upgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := store.StoreUpgrades{
Added: []string{authz.ModuleName, feegrant.ModuleName},
Added: []string{authz.ModuleName, feegrant.ModuleName, routertypes.ModuleName},
}

// configure store loader that checks if version == upgradeHeight and applies store upgrades
Expand Down

0 comments on commit 2deb3ff

Please sign in to comment.