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

handle null returning from getBlock #207

Open
zavelevsky opened this issue Feb 16, 2025 · 0 comments
Open

handle null returning from getBlock #207

zavelevsky opened this issue Feb 16, 2025 · 0 comments

Comments

@zavelevsky
Copy link
Contributor

Reported by licensees on other chains.
Probably the provider handles errors differently, as I've never seen this case.
In max logger verbosity I'm printing BigNumbers in readable mode and this conversion helped noticing the issue as it failed.
I believe that such a scenario in ethers over ethereum results in an earlier exception.

“related code in sdk. probably need to handle the error and do not push result to lastestBlocksMetada when error happens?”

Seems we need to check for what's returned from getBlock and getBlockNumber and handle it properly in the relevant places.

Image

Image

Image

Image

Image

Image

Image

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

No branches or pull requests

1 participant