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

rename upgrade package #183

Merged
merged 1 commit into from
Oct 23, 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
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
Loading