Skip to content

Commit

Permalink
fix: remove unnecessary migration (#15848)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Apr 15, 2023
1 parent 89fd78e commit 2604078
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions x/auth/migrations/v5/doc.go

This file was deleted.

5 changes: 0 additions & 5 deletions x/auth/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
if err := cfg.RegisterMigration(types.ModuleName, 3, m.Migrate3to4); err != nil {
panic(fmt.Sprintf("failed to migrate x/%s from version 3 to 4: %v", types.ModuleName, err))
}

// see migrations/v5/doc.go
if err := cfg.RegisterMigration(types.ModuleName, 4, func(ctx sdk.Context) error { return nil }); err != nil {
panic(fmt.Sprintf("failed to migrate x/%s from version 4 to 5: %v", types.ModuleName, err))
}
}

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

0 comments on commit 2604078

Please sign in to comment.