add orderBy parameter to TxsByEvents (#8815)

* add orderBy parameter to grpc query

* add orderby parameter

* change orderBy param to enum

* lint

* proto lint

* add changelog

* Update x/auth/tx/service.go

Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
This commit is contained in:
MD Aleem 2021-03-15 23:26:33 +05:30 committed by GitHub
parent e23d361a6f
commit 553aac5030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,6 +170,6 @@ func parseOrderBy(orderBy txtypes.OrderBy) string {
case txtypes.OrderBy_ORDER_BY_DESC:
return "desc"
default:
return "asc"
return "" // Defaults to Tendermint's default, which is `asc` now.
}
}