Skip to content

Commit

Permalink
feat(uniond): added da cv to vm
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Jun 3, 2024
1 parent 2dd8bce commit dfbe38c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uniond/app/upgrades/v0_23_0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ package v0_23_0
import (
"context"
"union/app/upgrades"
"union/x/deferredack"
datypes "union/x/deferredack/types"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/types/module"
)

func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, keepers *upgrades.AppKeepers) upgradetypes.UpgradeHandler {
return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
vm[datypes.ModuleName] = deferredack.ConsensusVersion
return mm.RunMigrations(ctx, configurator, vm)
}
}

0 comments on commit dfbe38c

Please sign in to comment.