Skip to content

Commit

Permalink
upgrade(v4): change upgrade name (#162)
Browse files Browse the repository at this point in the history
* rename v3.2 upgrade to v4

* fix ibcRouter seal
  • Loading branch information
harish551 authored Mar 7, 2024
1 parent 428db10 commit 9cc9a2d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import (
v2 "github.com/OmniFlix/omniflixhub/v3/app/upgrades/v2"
v2_1 "github.com/OmniFlix/omniflixhub/v3/app/upgrades/v2.1"
v3 "github.com/OmniFlix/omniflixhub/v3/app/upgrades/v3"
v3_2 "github.com/OmniFlix/omniflixhub/v3/app/upgrades/v3.2"
v4 "github.com/OmniFlix/omniflixhub/v3/app/upgrades/v4"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

Expand Down Expand Up @@ -90,7 +90,7 @@ func getGovProposalHandlers() []govclient.ProposalHandler {
var (
// DefaultNodeHome default home directories for the application daemon
DefaultNodeHome string
Upgrades = []upgrades.Upgrade{v012.Upgrade, v2.Upgrade, v2_1.Upgrade, v3.Upgrade, v3_2.Upgrade}
Upgrades = []upgrades.Upgrade{v012.Upgrade, v2.Upgrade, v2_1.Upgrade, v3.Upgrade, v4.Upgrade}
Forks []upgrades.Fork
)

Expand Down
2 changes: 0 additions & 2 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ func NewAppKeeper(
AddRoute(icqtypes.ModuleName, icqModule).
AddRoute(ibcnfttransfertypes.ModuleName, nfttransferIBCModule)

appKeepers.IBCKeeper.SetRouter(ibcRouter)

// wasm configuration

wasmDir := filepath.Join(homePath, "wasm")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package v3_2
package v4

import (
"github.com/OmniFlix/omniflixhub/v3/app/upgrades"
store "github.com/cosmos/cosmos-sdk/store/types"
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"
)

const UpgradeName = "v3.2"
const UpgradeName = "v4"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateV3_2UpgradeHandler,
CreateUpgradeHandler: CreateV4UpgradeHandler,
StoreUpgrades: store.StoreUpgrades{
Added: []string{ibchookstypes.StoreKey},
},
Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v3.2/upgrades.go → app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v3_2
package v4

import (
"github.com/OmniFlix/omniflixhub/v3/app/keepers"
Expand All @@ -8,7 +8,7 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateV3_2UpgradeHandler(
func CreateV4UpgradeHandler(
mm *module.Manager,
cfg module.Configurator,
_ upgrades.BaseAppParamManager,
Expand Down

0 comments on commit 9cc9a2d

Please sign in to comment.