Skip to content

Commit

Permalink
only return when the buffer is full and reached the end of the histor…
Browse files Browse the repository at this point in the history
…ical range
  • Loading branch information
kariy committed Sep 1, 2024
1 parent db8239d commit f6e65ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/katana/rpc/rpc/src/starknet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<EF: ExecutorFactory> StarknetApi<EF> {
&mut buffer,
)?;

if end {
if end && buffer.len() as u64 == chunk_size {
return Ok(EventsPage {
events: buffer,
continuation_token: Some(cursor.to_string()),
Expand Down

0 comments on commit f6e65ef

Please sign in to comment.