MetaMask / MetaMask/metamask-extension

Refactor the transaction controller so that the global provider and block tracker are retrieved dynamically

Open
#24,370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

INVALID-ISSUE-TEMPLATE team-confirmations Transactions
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

As part of the work to [Delay network controller provider initialization](https://github.com/MetaMask/metamask-extension/pull/23005) in order to avoid requests to 3rd party APIs before user onboarding is complete, we need to refactor the transaction controller so that the global provider and block tracker are retrieved dynamically.

[A PR](https://github.com/MetaMask/core/pull/4004) for this work has already been created by @matthewwalsh0. It needs rebasing and testing but it's otherwise mostly complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing work in MetaMask/core pull request #4004, which covers dynamically retrieving the transaction controller's global provider and block tracker. Rebase the PR, run the relevant tests, and confirm that provider initialization is delayed as intended without breaking transaction handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.