Skip to content

Commit

Permalink
Update module.go
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Sep 13, 2023
1 parent a21eefc commit 0aa8200
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x/ccv/consumer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
// RegisterServices registers module services.
func (am AppModule) RegisterServices(cfg module.Configurator) {
consumertypes.RegisterQueryServer(cfg.QueryServer(), am.keeper)
cfg.RegisterMigration(consumertypes.ModuleName,
1, // from version 1
am.keeper.MigrateConsumerPacketData)

m := keeper.NewMigrator(am.keeper, am.paramSpace)
if err := cfg.RegisterMigration(consumertypes.ModuleName, 1, m.Migrate1to2); err != nil {
panic(fmt.Sprintf("failed to register migrator for %s: %s", consumertypes.ModuleName, err))
}
}

// InitGenesis performs genesis initialization for the consumer module. It returns
Expand Down

0 comments on commit 0aa8200

Please sign in to comment.