refactor(Store): remove abci query req and res deps from store (#16321)

This commit is contained in:
Marko
2023-05-30 15:50:23 +00:00
committed by GitHub
parent 6b37d8630e
commit d1a337eb78
21 changed files with 183 additions and 85 deletions
+8 -5
View File
@@ -881,13 +881,16 @@ func handleQueryStore(app *BaseApp, path []string, req abci.RequestQuery) *abci.
), app.trace)
}
// TODO: Update Query interface method accept a pointer to RequestQuery.
//
// Ref: https://github.com/cosmos/cosmos-sdk/issues/12272
resp := queryable.Query(&req)
sdkReq := storetypes.RequestQuery(req)
resp, err := queryable.Query(&sdkReq)
if err != nil {
return sdkerrors.QueryResult(err, app.trace)
}
resp.Height = req.Height
return resp
abciResp := abci.ResponseQuery(*resp)
return &abciResp
}
func handleQueryP2P(app *BaseApp, path []string) *abci.ResponseQuery {