-
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
feat: Delete legacy transaction confirmation code #29926
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
64e5531
to
b5c9fc8
Compare
Builds ready [b5c9fc8]
Page Load Metrics (1783 ± 105 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
8c28873
to
1659a71
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [9d7ada6]
Page Load Metrics (1813 ± 66 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
9d7ada6
to
b9308fc
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
0b9ece6
to
b9308fc
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
93f769e
to
86c9928
Compare
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
7c89f9f
to
b136023
Compare
Builds ready [ffa5475]
Page Load Metrics (1616 ± 63 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
ffa5475
to
7973268
Compare
7973268
to
e12f346
Compare
Builds ready [e12f346]
Page Load Metrics (1534 ± 36 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
@MetaMask/policy-reviewers, I believe the policy change results from removing the package I don't understand why browserify is now added to the policy file.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Policy changes are approved. No new permissions added. Only the path to the qs
module has changed due to package updates/removals.
@pedronfigueiredo Screen.Recording.2025-01-31.at.00.32.16.mov |
@pedronfigueiredo Screen.Recording.2025-01-31.at.00.39.30.mov |
The change is in the identifier of the I'll include a complete explanation of this in the next educational content :) There's a hint of it in the policy review process training currently available in cornerstone. |
e12f346
to
32128b3
Compare
@sleepytanya this has been removed on this PR as it was only needed in the old confirmation flows. In the redesigned screens the nonce is always editable as long as advanced details are open and smart transactions are turned off. |
Nicer 👍 |
Description
The goal of this PR is to remove as much dead code as possible related to the transaction confirmations that predate the redesign.
From
ConfirmTransaction
component:ConfirmDeployContract
ConfirmSendEther
ConfirmContractInteraction
From
ConfirmTokenTransactionSwitch
andConfirmTransactionSwitch
:ConfirmApprove
ConfirmTokenTransactionBase
ConfirmSendToken
ConfirmTransactionBase
,TokenAllowance
andConfirmApproveContent
that were used by the components above.GasDisplay
,ConfirmGasDisplay
andConfirmLegacyGasDisplay
that were no longer usedEdit custom nonce settings toggle, selector, action and state property migration, and associated
custom-nonce
component for the legacy transactions.Unit tests, storybook stories, styles and localization files associated with the removed files.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4025
Manual testing steps
Confirm the remaining confirmations (Transactions, Signatures, Encrypt / Decrypt, Add/Switch Ethereum Chain Snaps) still work.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist