cosmos / ethermint

Ethermint is a scalable and interoperable Ethereum, built on Proof-of-Stake with fast-finality using the Cosmos SDK.
https://ethermint.dev/
Apache License 2.0
412 stars 161 forks source link

RPC eth_getBlockByNumber dose not work as expected in the project ethers.js #814

Open banishee opened 3 years ago

banishee commented 3 years ago

System info: [Include Ethermint commit, operating system name, and other relevant details]

Steps to reproduce:

  1. Project ethers.js calls eth_getBlockByNumber on projectethermint, then returns the result as follows: image

  2. Project ethers.js calls eth_getBlockByNumber on project ethereum, then returns the result as follows: image

  3. Because the value of extraData from ethermint is 0x0,it will cause the hex length check to fail https://github.com/ethers-io/ethers.js/blob/master/packages/providers/src.ts/formatter.ts#L200

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Additional info: [Include gist of relevant config, logs, etc.]

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.