From b9f5a5b2d9bd37d232627a7575aa3cfe6b4c00ff Mon Sep 17 00:00:00 2001 From: Jasmina Malicevic Date: Wed, 14 Dec 2022 13:35:15 +0100 Subject: [PATCH] Fixed match.events order in light client rpc --- light/proxy/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light/proxy/routes.go b/light/proxy/routes.go index 9e0d590bd..69aaa712e 100644 --- a/light/proxy/routes.go +++ b/light/proxy/routes.go @@ -177,7 +177,7 @@ func makeTxSearchFuncMatchEvents(c *lrpc.Client) rpcTxSearchFuncMatchEvents { matchEvents bool, ) (*ctypes.ResultTxSearch, error) { if matchEvents { - query = query + " AND match.events = 1" + query = "match.events = 1 AND " + query } return c.TxSearch(ctx.Context(), query, prove, page, perPage, orderBy) } @@ -202,7 +202,7 @@ func makeBlockSearchFuncMatchEvents(c *lrpc.Client) rpcBlockSearchFuncMatchEvent matchEvents bool, ) (*ctypes.ResultBlockSearch, error) { if matchEvents { - query = query + " AND match.events = 1" + query = "match.events = 1 AND " + query } return c.BlockSearch(ctx.Context(), query, page, perPage, orderBy) }