Skip to content

Conversation

busimus
Copy link
Contributor

@busimus busimus commented Jun 10, 2025

This PR does two things:

  1. Adds a fallback to the frontend's provider if sending an eth_estimateGas call through the wallet's RPC fails or times out.
  2. Vendors some Ethers methods with minimal changes to reroute their RPC calls to the frontend's provider so that the only call sent to the wallet is to submit the transaction.

This fixes the longstanding issue of the frontend partially breaking due to the user having a malfunctioning RPC in their wallet. These changes should have no side effects for most users because the vast majority of RPC calls already go through the frontend's RPC, and the vendored code is almost verbatim what we already run.

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