Skip to content

Reduce cost by preventing ethers.js eth_chainId calls #265

@juliangruber

Description

@juliangruber
Image

eth_chainId is one of our most expensive calls in total. Let's prevent it wherever we can.

@bajtos found a recipe:

https://github.com/ethers-io/ethers.js/blob/0195f440e35d11f84874f58d80b2071f52c4b17f/docs.wrm/migrating.wrm#L240-L244

Here are all repos instantiating Ethers.js:

  • desktop
  • spark-checker
  • node
  • spark-rewards
  • spark-evaluate
  • spark-api
  • index-provider-peer-id
  • spark-rewards
  • spark-stats

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    📥 candidate

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions