-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #12321
base: main
Are you sure you want to change the base?
refactor: remove global network from transaction controller #12321
Conversation
Include network client ID in addTransaction calls. Include network client ID in updateIncomingTransactions calls. Include network client Id in getNetworkNonce calls. Update calls to wipeTransactions. Create global network utils. Move getGlobalEthQuery to global network utils. Add network client ID to test data.
Fix Yarn duplication.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/[email protected] |
Bitrise✅✅✅ Commit hash: 93dde7c Note
|
Bitrise❌❌❌ Commit hash: 753e7a4 Note
Tip
|
Quality Gate failedFailed conditions |
Bitrise✅✅✅ Commit hash: 0ec8217 Note
|
Bitrise QA builds https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/256a579f-cde8-4d78-a063-4c08f56d1da8?tab=workflows
iOS iosNonce.movAndroid androidNonce.mov
iOS Android Screen_Recording_20241119_220654_MetaMask.mp4 |
@matthewwalsh0 the 2.mov |
Nonce error is not present: |
Description
Upgrade
@metamask/transaction-controller
to remove all usages of the global network.Specifically:
getGlobalChainId
getGlobalNetworkClientId
getGlobalEthQuery
networkClientId
to calls to:addTransaction
estimateGas
getNonceLock
startIncomingTransactionPolling
updateIncomingTransactions
getTransactions
wipeTransactions
networkClientId
to Redux transaction object.networkClientId
toStake
type inStakeContext
.networkClientId
argument to transaction utils:getMethodData
isSmartContractAddress
networkClientId
to test data.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