From 50770a29ac38e0f302da1eb4d825ce0adedc7852 Mon Sep 17 00:00:00 2001 From: duonghb53 Date: Sun, 8 Dec 2024 08:31:56 +0700 Subject: [PATCH] change version upgrade name --- app/app.go | 4 ++-- app/upgrades/{v10_1 => v10_2}/constants.go | 6 +++--- app/upgrades/{v10_1 => v10_2}/upgrades.go | 4 ++-- scripts/gov_test/test-upgrade-and-submit-proposal.sh | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) rename app/upgrades/{v10_1 => v10_2}/constants.go (62%) rename app/upgrades/{v10_1 => v10_2}/upgrades.go (92%) diff --git a/app/app.go b/app/app.go index a1c95648..e1c38d1b 100644 --- a/app/app.go +++ b/app/app.go @@ -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" @@ -95,7 +95,7 @@ var ( v8_1.Upgrade, v8_2.Upgrade, v8_3.Upgrade, - v10_1.Upgrade, + v10_2.Upgrade, v10.Upgrade, } diff --git a/app/upgrades/v10_1/constants.go b/app/upgrades/v10_2/constants.go similarity index 62% rename from app/upgrades/v10_1/constants.go rename to app/upgrades/v10_2/constants.go index 60e40cc7..60fa4e14 100644 --- a/app/upgrades/v10_1/constants.go +++ b/app/upgrades/v10_2/constants.go @@ -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, } diff --git a/app/upgrades/v10_1/upgrades.go b/app/upgrades/v10_2/upgrades.go similarity index 92% rename from app/upgrades/v10_1/upgrades.go rename to app/upgrades/v10_2/upgrades.go index e4163131..0764b90d 100644 --- a/app/upgrades/v10_1/upgrades.go +++ b/app/upgrades/v10_2/upgrades.go @@ -1,5 +1,5 @@ //nolint:revive -package v10_1 +package v10_2 import ( "github.com/classic-terra/core/v3/app/keepers" @@ -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, diff --git a/scripts/gov_test/test-upgrade-and-submit-proposal.sh b/scripts/gov_test/test-upgrade-and-submit-proposal.sh index ef06ab20..acca51c7 100755 --- a/scripts/gov_test/test-upgrade-and-submit-proposal.sh +++ b/scripts/gov_test/test-upgrade-and-submit-proposal.sh @@ -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