ethermint icon indicating copy to clipboard operation
ethermint copied to clipboard

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

Open banishee opened this issue 4 years ago • 1 comments

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

  • branch dev

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]

  • ethers.js is a famous ethereum related project. I wish the value of extraData on ethermint could be consistent with project ethereum

Actual behavior: [What actually happened]

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

banishee avatar Feb 17 '21 11:02 banishee

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.

github-actions[bot] avatar Apr 04 '21 00:04 github-actions[bot]