Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Jan 23, 2025
1 parent eae85b8 commit 81f4d9e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import (

// v9 had been used by tax2gas and has to be skipped
v10_1 "github.com/classic-terra/core/v3/app/upgrades/v10_1"
v11 "github.com/classic-terra/core/v3/app/upgrades/v11"
v11_1 "github.com/classic-terra/core/v3/app/upgrades/v11_1"

customante "github.com/classic-terra/core/v3/custom/auth/ante"
Expand Down Expand Up @@ -97,6 +98,7 @@ var (
v8_2.Upgrade,
v8_3.Upgrade,
v10_1.Upgrade,
v11.Upgrade,
v11_1.Upgrade,
}

Expand Down
13 changes: 13 additions & 0 deletions app/upgrades/v11/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//nolint:revive

Check failure on line 1 in app/upgrades/v11/constants.go

View workflow job for this annotation

GitHub Actions / golangci-lint

directive `//nolint:revive` is unused for linter "revive" (nolintlint)
package v11

import (
"github.com/classic-terra/core/v3/app/upgrades"
)

const UpgradeName = "v11"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateV11UpgradeHandler,
}
21 changes: 21 additions & 0 deletions app/upgrades/v11/upgrades.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//nolint:revive

Check failure on line 1 in app/upgrades/v11/upgrades.go

View workflow job for this annotation

GitHub Actions / golangci-lint

directive `//nolint:revive` is unused for linter "revive" (nolintlint)
package v11

import (
"github.com/classic-terra/core/v3/app/keepers"
"github.com/classic-terra/core/v3/app/upgrades"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

func CreateV11UpgradeHandler(
mm *module.Manager,
cfg module.Configurator,
_ upgrades.BaseAppParamManager,
keepers *keepers.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, cfg, fromVM)
}
}

0 comments on commit 81f4d9e

Please sign in to comment.