Skip to content
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

fix: Maximum call stack size exceeded with array.push #1

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

shardAstronaut
Copy link

(Bug: last_indexed_block reset to Zero after reaching the seed blocks checkpoint-labs#300)

When indexing contracts with a big number of events the array.push method will throw an error.

When you use spread operator all items of the source array are stored in the stack as arguments list, so having a large number of items (~ > 100K) will cause the this stack size exceed.

The most simple work-around is to manually push all items one by one.

…xed_block reset to Zero after reaching the seed blocks checkpoint-labs#300)

When indexing contracts with a big number of events the array.push method will throw an error.

When you use spread operator all items of the source array are stored in the stack as arguments list, so having a large number of items (~ > 100K) will cause the this stack size exceed.

The most simple work-around is to manually push all items one by one.
@shardAstronaut shardAstronaut merged commit cf36be3 into master Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant