Skip to content

Commit

Permalink
feat: add v4.2.4 handler (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 authored Sep 9, 2024
1 parent 3e96e87 commit da006f5
Show file tree
Hide file tree
Showing 4 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 @@ -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

0 comments on commit da006f5

Please sign in to comment.