cowprotocol / ethcontract-rs

Generate type-safe bindings for interacting with Ethereum contracts.
Apache License 2.0
307 stars 45 forks source link

Replace use of `net_version` with `eth_chainId` #966

Closed MartinquaXD closed 9 months ago

MartinquaXD commented 9 months ago

These calls are identical but some RPCs might not expose the net module by default whereas eth always gets exposed. Since we only use it for net_version this would be an easy win to improve compatibility with nodes.