Skip to content

Commit

Permalink
fix upgrade handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.balea committed Aug 21, 2024
1 parent 66c83a6 commit 045acb3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/upgrades/v710/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package v710

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/bze-alphateam/bze/app/upgrades"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

const UpgradeName = "v7.1.0"

func CreateUpgradeHandler(
cfg module.Configurator,
mm *module.Manager,
_ module.Configurator,
_ *module.Manager,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, cfg, vm)
}
return upgrades.EmptyUpgradeHandler()
}

0 comments on commit 045acb3

Please sign in to comment.