Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(katana): added chunk size limit to events method #2644
feat(katana): added chunk size limit to events method #2644
Changes from 13 commits
0c70748
32597b7
4abd447
1afd693
86150ed
c90845d
fd4c2e7
ccb0c81
4987d1c
3d170b8
86134fc
07f2b79
66bfe44
606a544
6d82fbd
8772aa0
a8288d3
acccb45
e1103ea
099be6a
d92ce69
4761298
f2923de
7752466
56b8cb7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider preserving actual values in error conversion.
The current implementation uses default values (0, 0) when converting from
StarknetRsError::PageSizeTooBig
. This could be misleading for debugging purposes, sensei.Consider modifying the
StarknetRsError
in the upstream library to include these fields, or retrieving the values from the context where the error is generated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incorrect config field reference and error construction.
Ohayo sensei! There are two issues in the validation code:
self.inner.max_chunk_size
instead ofself.inner.config.max_event_page_size
Apply this fix:
📝 Committable suggestion