Skip to content

Commit

Permalink
Add Coreum V4 upgrade alias for the v4 upgrade. (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil authored Jul 9, 2024
1 parent 75581f0 commit 5e3c62b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ func New(

/**** Upgrades ****/
upgrades := []appupgrade.Upgrade{
appupgradev4.New(app.ModuleManager, app.configurator, app.ConsensusParamsKeeper),
appupgradev4.New(appupgradev4.Name, app.ModuleManager, app.configurator, app.ConsensusParamsKeeper),
appupgradev4.New(appupgradev4.NameAlias, app.ModuleManager, app.configurator, app.ConsensusParamsKeeper),
}

upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
Expand Down
9 changes: 6 additions & 3 deletions app/upgrade/v4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ import (
)

// Name defines the upgrade name.
const Name = "v4"
const (
Name = "v4"
NameAlias = "Coreum V4"
)

// New makes an upgrade handler for v4 upgrade.
func New(mm *module.Manager, configurator module.Configurator,
func New(name string, mm *module.Manager, configurator module.Configurator,
consensusParamKeeper consensusparamkeeper.Keeper,
) upgrade.Upgrade {
return upgrade.Upgrade{
Name: Name,
Name: name,
StoreUpgrades: store.StoreUpgrades{
Added: []string{
ibchookstypes.StoreKey,
Expand Down

0 comments on commit 5e3c62b

Please sign in to comment.