-
Notifications
You must be signed in to change notification settings - Fork 5k
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
refactor: remove global network from transaction controller #28449
Merged
matthewwalsh0
merged 13 commits into
develop
from
refactor/transaction-controller-remove-global-network
Nov 29, 2024
Merged
refactor: remove global network from transaction controller #28449
matthewwalsh0
merged 13 commits into
develop
from
refactor/transaction-controller-remove-global-network
Nov 29, 2024
+110
−105
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove multichain flag. Remove getCurrentChainId usage in background.
Fix unit tests. Update Lavamoat policies.
Builds ready [cafd321]
Page Load Metrics (1826 ± 57 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [8c6efbf]
Page Load Metrics (2015 ± 103 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
4 tasks
Builds ready [fcd95a7]
Page Load Metrics (1981 ± 143 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
jpuri
previously approved these changes
Nov 21, 2024
pedronfigueiredo
previously approved these changes
Nov 21, 2024
matthewwalsh0
dismissed stale reviews from pedronfigueiredo and jpuri
via
November 26, 2024 09:21
815aaed
Builds ready [815aaed]
Page Load Metrics (2029 ± 100 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [c378718]
Page Load Metrics (1989 ± 147 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [7f8ea7d]
Page Load Metrics (1493 ± 23 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/[email protected] |
Builds ready [96ce747]
Page Load Metrics (2045 ± 128 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
pedronfigueiredo
approved these changes
Nov 29, 2024
OGPoyraz
approved these changes
Nov 29, 2024
matthewwalsh0
deleted the
refactor/transaction-controller-remove-global-network
branch
November 29, 2024 16:48
metamaskbot
added
the
release-12.10.0
Issue or pull request that will be included in release 12.10.0
label
Nov 29, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
QA Passed
release-12.10.0
Issue or pull request that will be included in release 12.10.0
team-confirmations
Push issues to confirmations team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrade
@metamask/transaction-controller
to remove all usages of the global network.Specifically:
getGlobalChainId
andgetGlobalNetworkClientId
private methods inMetamaskController
.TRANSACTION_MULTICHAIN
environment variable.networkClientId
to test data.addTransaction
estimateGasBuffered
getNonceLock
getTransactions
startIncomingTransactionPolling
updateIncomingTransactions
wipeTransactions
Related issues
Fixes: #3499
Manual testing steps
Full regression of all transaction flows.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist