Skip to content

Commit

Permalink
RegisterQueryHandlers has been registered
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Dec 3, 2024
1 parent 168ff24 commit 3b3ec1f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions x/accounts/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"google.golang.org/grpc"

"cosmossdk.io/core/appmodule"
appmodulev2 "cosmossdk.io/core/appmodule/v2"
"cosmossdk.io/core/registry"
v1 "cosmossdk.io/x/accounts/v1"

Expand Down Expand Up @@ -61,16 +60,6 @@ func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error {
return nil
}

// RegisterQueryHandlers registers the query handlers for the accounts module.
func (am AppModule) RegisterQueryHandlers(router appmodulev2.QueryRouter) {
queryServer := NewQueryServer(am.k)

appmodulev2.RegisterMsgHandler(router, queryServer.AccountNumber)
appmodulev2.RegisterMsgHandler(router, queryServer.AccountQuery)
appmodulev2.RegisterMsgHandler(router, queryServer.AccountType)
appmodulev2.RegisterMsgHandler(router, queryServer.Schema)
}

// App module genesis

func (am AppModule) DefaultGenesis() json.RawMessage {
Expand Down

0 comments on commit 3b3ec1f

Please sign in to comment.