Skip to content

Commit

Permalink
Merge pull request #312 from comdex-official/update-upgrade
Browse files Browse the repository at this point in the history
update upgrade v2 name
  • Loading branch information
dheerajkd30 authored Jul 3, 2022
2 parents 466a015 + 9233e99 commit b290cb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ import (
cwasm "github.com/comdex-official/comdex/app/wasm"

tv1_0_0 "github.com/comdex-official/comdex/app/upgrades/testnet/v1_0_0"
tv2 "github.com/comdex-official/comdex/app/upgrades/testnet/v2"
tv2_0_0 "github.com/comdex-official/comdex/app/upgrades/testnet/v2_0_0"
)

const (
Expand Down Expand Up @@ -1079,8 +1079,8 @@ func (a *App) registerUpgradeHandlers() {
)

a.UpgradeKeeper.SetUpgradeHandler(
tv2.UpgradeName,
tv2.CreateUpgradeHandler(a.mm, a.configurator),
tv2_0_0.UpgradeName,
tv2_0_0.CreateUpgradeHandler(a.mm, a.configurator),
)

// When a planned update height is reached, the old binary will panic
Expand All @@ -1100,7 +1100,7 @@ func (a *App) registerUpgradeHandlers() {
Added: []string{authz.ModuleName},
Deleted: []string{"asset", "liquidity", "oracle", "vault"},
}
case upgradeInfo.Name == tv2.UpgradeName && !a.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height):
case upgradeInfo.Name == tv2_0_0.UpgradeName && !a.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height):
// prepare store for testnet upgrade v1.1.0
storeUpgrades = &storetypes.StoreUpgrades{
Added: []string{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v2
package v2_0_0

const (
UpgradeName = "v2"
UpgradeName = "v2_0_0"
UpgradeHeight = 3573040 // replace this height
UpgradeInfo = `'{
"binaries": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v2
package v2_0_0

import (
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -15,7 +15,7 @@ import (
icatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
)

// CreateUpgradeHandler creates an SDK upgrade handler for v2
// CreateUpgradeHandler creates an SDK upgrade handler for v2_0_0
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
Expand Down

0 comments on commit b290cb1

Please sign in to comment.