Skip to content

Conversation

@kajoseph
Copy link
Collaborator

@kajoseph kajoseph commented Feb 5, 2025

No description provided.

const blocks = await Promise.all(
[...Array(n).keys()].map(async (n) => {
const targetBlockNumber = bestBlock - n;
const targetBlockNumber = bestBlock - BigInt(n);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

targetBlockNumber is dynamic with n

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.

2 participants