Skip to content

Commit

Permalink
fix ibc v8 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Aug 14, 2024
1 parent c6c21a9 commit 1e4d7cd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import (
"fmt"
"path/filepath"

ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"

addresscodec "github.com/cosmos/cosmos-sdk/codec/address"

"cosmossdk.io/log"
Expand Down Expand Up @@ -631,11 +634,14 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(slashingtypes.ModuleName)
paramsKeeper.Subspace(govtypes.ModuleName)
paramsKeeper.Subspace(crisistypes.ModuleName)
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibcexported.ModuleName)
paramsKeeper.Subspace(icahosttypes.SubModuleName)
// register the key tables for legacy param subspaces
keyTable := ibcclienttypes.ParamKeyTable()
keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
paramsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())
paramsKeeper.Subspace(icqtypes.ModuleName)
paramsKeeper.Subspace(packetforwardtypes.ModuleName)
paramsKeeper.Subspace(packetforwardtypes.ModuleName).WithKeyTable(packetforwardtypes.ParamKeyTable())
paramsKeeper.Subspace(globalfee.ModuleName)
paramsKeeper.Subspace(tokenfactorytypes.ModuleName)
paramsKeeper.Subspace(wasmtypes.ModuleName)
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v5/constants.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v4
package v5

import (
store "cosmossdk.io/store/types"
Expand Down
3 changes: 2 additions & 1 deletion app/upgrades/v5/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v4
package v5

import (
"context"
Expand Down Expand Up @@ -27,6 +27,7 @@ func CreateV5UpgradeHandler(
if err != nil {
return nil, err
}

// Set Gov Params
govParams, err := keepers.GovKeeper.Params.Get(ctx)
if err != nil {
Expand Down

0 comments on commit 1e4d7cd

Please sign in to comment.