From ebd1be5d7bda078d90d9df0da0e54e6f35a23471 Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Thu, 2 May 2024 18:18:46 +0400
Subject: [PATCH] feat: enable querying state through grpc (backport #3423)
(#3424)
Closes: #3422
We seemed to have forgotten to add the query function which means
`ABCIQuery` wasn't working even although the grpc endpoint was exposed
also related to: #3421
This is an automatic backport of pull request
#3423 done by [Mergify](https://mergify.com).
Co-authored-by: Callum Waters
---
app/app.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/app.go b/app/app.go
index 1ad041c4f2..735ace785b 100644
--- a/app/app.go
+++ b/app/app.go
@@ -691,7 +691,7 @@ func (app *App) RegisterTxService(clientCtx client.Context) {
// RegisterTendermintService implements the Application.RegisterTendermintService method.
func (app *App) RegisterTendermintService(clientCtx client.Context) {
- tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, nil)
+ tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, app.Query)
}
func (app *App) RegisterNodeService(clientCtx client.Context) {