Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Aug 19, 2024
1 parent 57e8816 commit 3930f15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtime/v2/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ func (m *MM[T]) RegisterServices(app *App[T]) error {
func (m *MM[T]) validateConfig() error {
if err := m.assertNoForgottenModules("PreBlockers", m.config.PreBlockers, func(moduleName string) bool {
module := m.modules[moduleName]
_, hasBlock := module.(appmodulev2.HasPreBlocker)
return !hasBlock
_, hasPreBlock := module.(appmodulev2.HasPreBlocker)
return !hasPreBlock
}); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/v2/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type migrationRegistrar struct {
migrations map[string]map[uint64]appmodulev2.MigrationHandler
}

// newMigrationRegistrar is constructor for registering in-place store migrations for modules.
// newMigrationRegistrar is a constructor for registering in-place store migrations for modules.
func newMigrationRegistrar() *migrationRegistrar {
return &migrationRegistrar{
migrations: make(map[string]map[uint64]appmodulev2.MigrationHandler),
Expand Down
2 changes: 1 addition & 1 deletion runtime/v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
FlagHome = "home"
)

// ValidateProtoAnnotations validates that the proto annotations are correct.
// validateProtoAnnotations validates that the proto annotations are correct.
// More specifically, it verifies:
// - all services named "Msg" have `(cosmos.msg.v1.service) = true`,
//
Expand Down

0 comments on commit 3930f15

Please sign in to comment.