Skip to content

Add XDC RPC failover for identifier verification - #581

Draft
sirpy with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-unit-tests-failing-job
Draft

sirpy with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-unit-tests-failing-job

Conversation

Copilot AI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Unit Tests (3) failed when XDC network detection could not reach the configured RPC. Verification used only the first endpoint, so it had no fallback.

  • RPC configuration: Add a second public XDC endpoint to the default configuration.
  • Verification: Use an ethers FallbackProvider when multiple RPCs are configured, with chain ID 50 set on each provider.
new ethers.providers.FallbackProvider(
  rpcs.map(endpoint => new ethers.providers.JsonRpcProvider(endpoint, chainId)),
  1
)
  • Coverage: Add a network-free test confirming both default XDC endpoints are used.

Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job Unit Tests (3) Add XDC RPC failover for identifier verification Oct 25, 2026
Copilot AI requested a review from sirpy October 25, 2026 10:52

This branch has not been deployed

No deployments
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.

2 participants