Skip to content

fix(network-controller): Only consider failover endpoints when using Infura#9125

Open
FrederikBolding wants to merge 3 commits into
mainfrom
fb/only-use-failover-with-infura
Open

fix(network-controller): Only consider failover endpoints when using Infura#9125
FrederikBolding wants to merge 3 commits into
mainfrom
fb/only-use-failover-with-infura

Conversation

@FrederikBolding

@FrederikBolding FrederikBolding commented Jun 15, 2026

Copy link
Copy Markdown
Member

Explanation

Only add failover URLs to RpcServiceChain when the network client being created is of type Infura.

I would recommend reviewing this with white-space diff turned off.

References

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

).toHaveBeenCalledWith({
chainId,
error: expectedUnavailableError,
if (networkClientType !== NetworkClientType.Custom) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hacky. Open to suggestions for how to improve it, but giving the massive number of tests this seemed OK...

@FrederikBolding FrederikBolding marked this pull request as ready for review June 15, 2026 12:46
@FrederikBolding FrederikBolding requested review from a team as code owners June 15, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant