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 17:56:33 +00:00
committed by GitHub
co-authored by Amaury Alessio Treglia Jonathan Gimeno
parent e23d361a6f
commit 553aac5030
+1 -1
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.
}
}