tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 465 forks source link

Make fields optional when deserializing for compatibility #616

Closed leoyvens closed 1 year ago

leoyvens commented 2 years ago

This changes are necessary for compatibility with some EVM-compatible chains such as Celo and Fantom. I hope you're willing to take this small patch to support these chains.

tomusdrw commented 2 years ago

@leoyvens Thanks! Do you mind feature-gating this and adding a feature description in the README? I'd prefer to keep the library strict by default.

leoyvens commented 2 years ago

@tomusdrw Thank you for the review, I've added a feature gate.