Skip to content

Commit

Permalink
Merge pull request #318 from bnb-chain/develop
Browse files Browse the repository at this point in the history
release: prepare release for v0.2.6-alpha.2
  • Loading branch information
randyahx authored Sep 20, 2023
2 parents 8d414af + e02e6c0 commit 7664604
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.2.6
This release caps the pagination limit for queries at 100 records if it exceeds the default pagination limit.

* [#315](https://github.com/bnb-chain/greenfield-cosmos-sdk/pull/315) fix: restrict pagination limit

## v0.2.6-alpha.1
This release includes 1 new feature.

Expand Down
2 changes: 1 addition & 1 deletion types/query/filtered_pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func GenericFilteredPaginate[T codec.ProtoMarshaler, F codec.ProtoMarshaler](
return results, nil, fmt.Errorf("invalid request, either offset or key is expected, got both")
}

if limit == 0 {
if limit == 0 || limit > DefaultLimit {
limit = DefaultLimit

// count total results when the limit is zero/not supplied
Expand Down

0 comments on commit 7664604

Please sign in to comment.