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

fix: use rpc url from transports in handlers #1070

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Conversation

agualis
Copy link
Contributor

@agualis agualis commented Sep 9, 2024

Before:
Handlers were using getDefaultRpcUrl() which takes the viem's public rpc url. This could lead to errors due to 429s or temporary outages of the public URLs.

After:
Handlers use getHandlerRpcUrl()which takes the rpc url from the transports setup, that is, uses private (or fallback) urls, that should be more reliable.

With this change we should minimize errors like these ones: https://balancer-labs.sentry.io/issues/5763086985/

We are also using private infura url for integration tests (sepolia and polygon) to make them more reliable.

Copy link

vercel bot commented Sep 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:19am
test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:19am

lib/modules/web3/transports.ts Outdated Show resolved Hide resolved
@garethfuller garethfuller merged commit e717713 into main Sep 10, 2024
7 checks passed
@garethfuller garethfuller deleted the fix/handlerRpcUrls branch September 10, 2024 10:25
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