Skip to content

Conversation

@goran-ethernal
Copy link
Contributor

@goran-ethernal goran-ethernal commented Dec 10, 2025

🔄 Changes Summary

This PR is the cherry pick of PR #1387 to develop branch.

This PR addresses the issue that happened on one of the testnets, which reported block range too large error when reading a contract for specific logs in a block range.

The PR adds a generic way to recognize the given error when reading contracts and does a chunk calls to get all the data to avoid the error.

⚠️ Breaking Changes

NA

📋 Config Updates

NA

✅ Testing

  • 🤖 Automatic: aggkit CI

## 🔄 Changes Summary
This PR addresses the issue that happened on one of the testnets, which
reported `block range too large` error when reading a contract for
specific logs in a block range.

The PR adds a generic way to recognize the given error when reading
contracts and does a chunk calls to get all the data to avoid the error.

## ⚠️ Breaking Changes
NA

## 📋 Config Updates
NA

## ✅ Testing
- 🤖 **Automatic**: `aggkit` CI

## 🐞 Issues
- Closes #1386

---------

Co-authored-by: Stefan Negovanović <stefan@ethernal.tech>
@sonarqubecloud
Copy link

@goran-ethernal goran-ethernal requested a review from a team December 10, 2025 14:14
@goran-ethernal goran-ethernal merged commit a5d2c70 into develop Dec 10, 2025
22 checks passed
@goran-ethernal goran-ethernal deleted the fix/cherry-pick-1387 branch December 10, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants