We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
because Infura sets miner to null.
miner
rust-web3 has a non optional author/miner field that defaults to the 0 address if the field is not present in the json:
rust-web3/src/types/block.rs
Line 18 in 5520ec2
However when testing with Infura I found that they set miner to null which makes deserialization in rust-web3 fail. Potential solutions:
null
The text was updated successfully, but these errors were encountered:
see if there is a serde attribute (maybe from the serde_with crate) that also turns null into default
I like this one. Can we use #[serde(deserialize_with = "path")] for that?
#[serde(deserialize_with = "path")]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
because Infura sets
miner
to null.rust-web3 has a non optional author/miner field that defaults to the 0 address if the field is not present in the json:
rust-web3/src/types/block.rs
Line 18 in 5520ec2
However when testing with Infura I found that they set
miner
tonull
which makes deserialization in rust-web3 fail. Potential solutions:The text was updated successfully, but these errors were encountered: