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:
parent
e23d361a6f
commit
553aac5030
|
@ -170,6 +170,6 @@ func parseOrderBy(orderBy txtypes.OrderBy) string {
|
||||||
case txtypes.OrderBy_ORDER_BY_DESC:
|
case txtypes.OrderBy_ORDER_BY_DESC:
|
||||||
return "desc"
|
return "desc"
|
||||||
default:
|
default:
|
||||||
return "asc"
|
return "" // Defaults to Tendermint's default, which is `asc` now.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue