Skip to content

Commit

Permalink
Merge pull request onomyprotocol#183 from decentrio/son/fix
Browse files Browse the repository at this point in the history
rename upgrade package
  • Loading branch information
vuong177 authored Oct 23, 2024
2 parents c13b49a + ce48a6a commit 37efb0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ import (
"github.com/onomyprotocol/onomy/app/upgrades"
v1_1_6 "github.com/onomyprotocol/onomy/app/upgrades/v1.1.6"
v2_0_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.0.0"
v2_0_1 "github.com/onomyprotocol/onomy/app/upgrades/v2.0.1"
v2_1_0 "github.com/onomyprotocol/onomy/app/upgrades/v2.1.0"

"github.com/onomyprotocol/onomy/docs"
)

Expand Down Expand Up @@ -461,7 +462,7 @@ func (app *OnomyApp) SimulationManager() *module.SimulationManager {
func (app *OnomyApp) setupUpgradeHandlers() {
app.UpgradeKeeper.SetUpgradeHandler(v1_1_6.Name, v1_1_6.UpgradeHandler)
app.UpgradeKeeper.SetUpgradeHandler(v2_0_0.Name, v2_0_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))
app.UpgradeKeeper.SetUpgradeHandler(v2_0_1.Name, v2_0_1.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))
app.UpgradeKeeper.SetUpgradeHandler(v2_1_0.Name, v2_1_0.CreateUpgradeHandler(app.mm, app.configurator, &app.AppKeepers))

upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
Expand All @@ -480,7 +481,7 @@ func (app *OnomyApp) setupUpgradeHandlers() {
storeUpgrades = &storetypes.StoreUpgrades{
Deleted: []string{"provider"},
}
case v2_0_1.Name:
case v2_1_0.Name:
storeUpgrades = &storetypes.StoreUpgrades{
Deleted: []string{"dao"},
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package v1_1_4 is contains chain upgrade of the corresponding version.
package v2_0_1 //nolint:revive,stylecheck // app version
package v2_1_0 //nolint:revive,stylecheck // app version

import (
"context"
Expand Down

0 comments on commit 37efb0e

Please sign in to comment.