Skip to content

Commit

Permalink
Merge pull request #233 from BitCannaGlobal/upgrade_handler_test1
Browse files Browse the repository at this point in the history
fix ibcexported type
  • Loading branch information
RaulBernal authored Sep 20, 2023
2 parents 2da5ce2 + 04e3d8f commit 051782e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"

// "github.com/cosmos/cosmos-sdk/x/nft"
exported "github.com/cosmos/ibc-go/v7/modules/core/exported"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
ibctmmigrations "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint/migrations"
)

Expand Down Expand Up @@ -83,6 +83,9 @@ func (app *App) GanjaRevolution47(_ upgradetypes.Plan) {
keyTableAssigned = true

// ibc types
case ibcexported.ModuleName:
keyTable = icacontrollertypes.ParamKeyTable()
keyTableAssigned = true
case ibctransfertypes.ModuleName:
keyTable = ibctransfertypes.ParamKeyTable()
keyTableAssigned = true
Expand Down Expand Up @@ -130,7 +133,7 @@ func (app *App) GanjaRevolution47(_ upgradetypes.Plan) {
// https://github.com/cosmos/ibc-go/blob/v7.1.0/docs/migrations/v7-to-v7_1.md
// explicitly update the IBC 02-client params, adding the localhost client type
params := app.IBCKeeper.ClientKeeper.GetParams(ctx)
params.AllowedClients = append(params.AllowedClients, exported.Localhost)
params.AllowedClients = append(params.AllowedClients, ibcexported.Localhost)
app.IBCKeeper.ClientKeeper.SetParams(ctx, params)

// Run migrations
Expand Down

0 comments on commit 051782e

Please sign in to comment.