Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was 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

@banishee

Description

@banishee

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.]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions