Skip to content

Commit

Permalink
fix the v6.4 upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Mar 11, 2024
1 parent 4bba462 commit c8973b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"github.com/cometbft/cometbft/libs/log"
packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v7/packetforward/types"
ica "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts"
icagenesis "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/genesis/types"
icahosttypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/host/types"
Expand Down Expand Up @@ -52,7 +53,7 @@ func (app UmeeApp) RegisterUpgradeHandlers() {
app.registerUpgrade6_4(upgradeInfo)
}

func (app *UmeeApp) registerUpgrade6_4(_ upgradetypes.Plan) {
func (app *UmeeApp) registerUpgrade6_4(upgradeInfo upgradetypes.Plan) {
planName := "v6.4"

app.UpgradeKeeper.SetUpgradeHandler(planName,
Expand All @@ -76,6 +77,10 @@ func (app *UmeeApp) registerUpgrade6_4(_ upgradetypes.Plan) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{
Added: []string{packetforwardtypes.ModuleName},
})
}

func (app *UmeeApp) registerUpgrade6_0(upgradeInfo upgradetypes.Plan) {
Expand Down

0 comments on commit c8973b6

Please sign in to comment.