Skip to content

Commit

Permalink
change version upgrade name
Browse files Browse the repository at this point in the history
  • Loading branch information
duonghb53 committed Dec 8, 2024
1 parent 7c07829 commit 50770a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import (

// v9 had been used by tax2gas and has to be skipped
v10 "github.com/classic-terra/core/v3/app/upgrades/v10"
v10_1 "github.com/classic-terra/core/v3/app/upgrades/v10_1"
v10_2 "github.com/classic-terra/core/v3/app/upgrades/v10_2"

customante "github.com/classic-terra/core/v3/custom/auth/ante"
custompost "github.com/classic-terra/core/v3/custom/auth/post"
Expand Down Expand Up @@ -95,7 +95,7 @@ var (
v8_1.Upgrade,
v8_2.Upgrade,
v8_3.Upgrade,
v10_1.Upgrade,
v10_2.Upgrade,
v10.Upgrade,
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//nolint:revive
package v10_1
package v10_2

import (
"github.com/classic-terra/core/v3/app/upgrades"
)

const UpgradeName = "v10_1"
const UpgradeName = "v10_2"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateV101UpgradeHandler,
CreateUpgradeHandler: CreateV102UpgradeHandler,
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//nolint:revive
package v10_1
package v10_2

import (
"github.com/classic-terra/core/v3/app/keepers"
Expand All @@ -9,7 +9,7 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateV101UpgradeHandler(
func CreateV102UpgradeHandler(
mm *module.Manager,
cfg module.Configurator,
_ upgrades.BaseAppParamManager,
Expand Down
2 changes: 1 addition & 1 deletion scripts/gov_test/test-upgrade-and-submit-proposal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

HOME_DIR=mytestnet

./build/terrad tx gov submit-legacy-proposal software-upgrade v10_1 --upgrade-height 20 --upgrade-info v10_1 --title "upgrade" --description "upgrade" --no-validate --deposit "100000000uluna" --from test0 --keyring-backend test --home mytestnet -y
./build/terrad tx gov submit-legacy-proposal software-upgrade v10_2 --upgrade-height 20 --upgrade-info v10_2 --title "upgrade" --description "upgrade" --no-validate --deposit "100000000uluna" --from test0 --keyring-backend test --home mytestnet -y

./build/terrad tx gov vote 1 yes --from test0 --home mytestnet --keyring-backend test -y
./build/terrad tx gov vote 1 yes --from test1 --home mytestnet --keyring-backend test -y
Expand Down

0 comments on commit 50770a2

Please sign in to comment.