Skip to content

Commit

Permalink
retiring(query_request): encode decode methods
Browse files Browse the repository at this point in the history
Signed-off-by: Deepanshu Tripathi <[email protected]>
  • Loading branch information
deepanshutr committed Sep 2, 2024
1 parent ea6f6e9 commit e320725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/base/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (query query) Command() *cobra.Command {
return query.cliCommand.CreateCommand(runE)
}
func (query query) HandleQuery(context context.Context, requestQuery abciTypes.RequestQuery) ([]byte, error) {
request, err := query.requestPrototype().Decode(requestQuery.Data)
if err != nil {
request := query.requestPrototype()
if err := CodecPrototype().UnmarshalJSON(requestQuery.Data, request); err != nil {
return nil, err
}

Expand Down

0 comments on commit e320725

Please sign in to comment.