This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
RPC eth_getBlockByNumber dose not work as expected in the project ethers.js #814
Open
Description
System info: [Include Ethermint commit, operating system name, and other relevant details]
- branch
dev
Steps to reproduce:
-
Project
ethers.js
calls eth_getBlockByNumber on projectethermint
, then returns the result as follows:
-
Project
ethers.js
calls eth_getBlockByNumber on projectethereum
, then returns the result as follows:
-
Because the value of
extraData
fromethermint
is0x0
,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 ofextraData
onethermint
could be consistent with projectethereum
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
Activity