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

feat: don't initialize ethersProvider in module scope #6222

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Feb 15, 2024

Description

Shaves off one request off daemon.* calls, mostly here for posteriority - since the resolvers/univ2 is evaluated on splash screen, this means there is effectively a network request to the daemon while still in splash screen, which could be avoided.
Stretching the idea some more, as we get more and more lazy with loading, we should ensure there are no requests being made to endpoints at module-scope level.

Pull Request Type

  • 🐛 Bug fix (Non-breaking Change: Fixes an issue)
  • 🛠️ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • 💅 New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

relates to #6193

Risk

High Risk PRs Require 2 approvals

Low to none

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Engineering

  • Ensure getBlockNumber initiator doesn't fire daemon.* requests at splash-screen level, but only after that

Operations

None

Screenshots (if applicable)

Copy link
Contributor Author

gomesalexandre commented Feb 15, 2024

@gomesalexandre gomesalexandre marked this pull request as ready for review February 15, 2024 13:28
@gomesalexandre gomesalexandre requested a review from a team as a code owner February 15, 2024 13:28
@woodenfurniture woodenfurniture force-pushed the feat_ethers_provider_no_module_eval branch from 4565503 to a85f27c Compare February 19, 2024 11:26
@woodenfurniture woodenfurniture merged commit 85c16cf into develop Feb 19, 2024
2 checks passed
@woodenfurniture woodenfurniture deleted the feat_ethers_provider_no_module_eval branch February 19, 2024 11:26
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