Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add v4.2.4 handler #407

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ import (
v46 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_1_6"
v420 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_0"
v422 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_2"
v423 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_3"
v424 "github.com/White-Whale-Defi-Platform/migaloo-chain/v4/app/upgrades/v4_2_4"
"github.com/rakyll/statik/fs"

// unnamed import of statik for swagger UI support
Expand Down Expand Up @@ -1203,8 +1203,8 @@ func (app *MigalooApp) setupUpgradeHandlers() {
),
)
app.UpgradeKeeper.SetUpgradeHandler(
v423.UpgradeName,
v423.CreateUpgradeHandler(
v424.UpgradeName,
v424.CreateUpgradeHandler(
app.mm,
app.StakingKeeper,
app.configurator,
Expand All @@ -1223,7 +1223,7 @@ func (app *MigalooApp) setupUpgradeHandlers() {
return
}

if upgradeInfo.Name == v423.UpgradeName {
if upgradeInfo.Name == v424.UpgradeName {
storeUpgrades := &storetypes.StoreUpgrades{
Added: []string{},
Deleted: []string{},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v4

// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.3 upgrade.
// UpgradeName defines the on-chain upgrade name for the Migaloo v4.2.4 upgrade.
// this upgrade includes the fix for pfm
const (
UpgradeName = "v4.2.3"
UpgradeName = "v4.2.4"
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

// CreateUpgradeHandler that migrates the chain from v4.2.2 to v4.2.3
// CreateUpgradeHandler that migrates the chain from v4.2.2 to v4.2.4
func CreateUpgradeHandler(
mm *module.Manager,
_ *stakingKeeper.Keeper,
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ HOME=mytestnet
ROOT=$(pwd)
DENOM=uwhale
CHAIN_ID=localmigaloo
SOFTWARE_UPGRADE_NAME="v4.2.3"
SOFTWARE_UPGRADE_NAME="v4.2.4"
ADDITIONAL_PRE_SCRIPTS=${ADDITIONAL_PRE_SCRIPTS:-""}
ADDITIONAL_AFTER_SCRIPTS=${ADDITIONAL_AFTER_SCRIPTS:-""}

Expand Down
Loading