From 3b3ec1f36ccdf881348a3e937cad6fb33099920b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDongLieu=E2=80=9D?= Date: Tue, 3 Dec 2024 15:23:17 +0700 Subject: [PATCH] RegisterQueryHandlers has been registered --- x/accounts/module.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/x/accounts/module.go b/x/accounts/module.go index 22d40fb453be..6af3e795f0f9 100644 --- a/x/accounts/module.go +++ b/x/accounts/module.go @@ -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" @@ -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 {