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

Treat null miner as default in block #484

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

e00E
Copy link
Contributor

@e00E e00E commented Apr 21, 2021

When querying an Infura node for the pending block the miner field is
set to null. This used to result in a deserialization error but now
becomes the default H160 like when the field is missing.

Fixes #483

When querying an Infura node for the pending block the `miner` field is
set to `null`. This used to result in a deserialization error but now
becomes the default H160 like when the field is missing.
Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@tomusdrw tomusdrw merged commit a415fae into tomusdrw:master Apr 21, 2021
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.

rust-web3 cannot decode Infura getBlockByNumber response for pending block
2 participants