Skip to content

Commit 7ecdeb2

Browse files
authored
fix(x/market): incorrect index when parsing result of pagination key (#1987)
fixes akash-network/support#328 Signed-off-by: Artur Troian <troian@users.noreply.github.com> Co-authored-by: Artur Troian <troian@users.noreply.github.com>
1 parent 88ec594 commit 7ecdeb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x/market/keeper/grpc_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func (k Querier) Leases(c context.Context, req *types.QueryLeasesRequest) (*type
356356
}
357357
req.Pagination.Key = key
358358

359-
if unsolicited[1] == 1 {
359+
if unsolicited[0] == 1 {
360360
reverseSearch = true
361361
}
362362
} else if req.Filters.State != "" {

0 commit comments

Comments
 (0)