Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkController: Fix chain IDs in tests #1307

Merged
merged 1 commit into from
May 2, 2023
Merged

NetworkController: Fix chain IDs in tests #1307

merged 1 commit into from
May 2, 2023

Commits on May 2, 2023

  1. NetworkController: Fix chain IDs in tests

    When we replace `web3-provider-engine`, we will intercept `eth_chainId`
    to return a static result, which, for custom RPC endpoints, will come
    from the chain ID in the provider config. This means that this chain ID
    must be convertable to a 0x-prefixed hex string. However, when we
    specify chain IDs in the NetworkController tests, we sometimes use
    fake hex numbers. So this commit fixes various references in the tests
    to fulfill this requirement and generally make chain IDs match what we
    would expect them to be in reality.
    mcmire committed May 2, 2023
    Configuration menu
    Copy the full SHA
    88df763 View commit details
    Browse the repository at this point in the history