Skip to content

Commit

Permalink
set upgrade name v410
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 4, 2022
1 parent 2ab015f commit ba45d23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ import (
const (
Bech32Prefix = "chihuahua"
Name = "chihuahua"
v400UpgradeName = "v400"
v410UpgradeName = "v410"
NodeDir = ".chihuahuad"
)

Expand Down Expand Up @@ -601,9 +601,9 @@ func New(
panic(err)
}

if upgradeInfo.Name == v400UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if upgradeInfo.Name == v410UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := store.StoreUpgrades{
Added: []string{authtypes.FeeCollectorName},
Added: []string{},
}

// configure store loader that checks if version == upgradeHeight and applies store upgrades
Expand Down Expand Up @@ -795,7 +795,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino

// RegisterUpgradeHandlers returns upgrade handlers
func (app *App) RegisterUpgradeHandlers(cfg module.Configurator) {
app.UpgradeKeeper.SetUpgradeHandler(v400UpgradeName, func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
app.UpgradeKeeper.SetUpgradeHandler(v410UpgradeName, func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
// Burning module permissions

moduleAccI := app.AccountKeeper.GetModuleAccount(ctx, authtypes.FeeCollectorName)
Expand Down

0 comments on commit ba45d23

Please sign in to comment.