-
Notifications
You must be signed in to change notification settings - Fork 5.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
feat: account upgrade confirmation #30347
base: feat/atomic-batch-transactions
Are you sure you want to change the base?
feat: account upgrade confirmation #30347
Conversation
f377c94
to
29af3c0
Compare
Builds ready [3991b93]
Page Load Metrics (1602 ± 44 ms)
|
Builds ready [e4d53f8]
Page Load Metrics (1662 ± 40 ms)
|
Builds ready [5f104ac]
Page Load Metrics (1779 ± 106 ms)
|
Builds ready [f658768]
Page Load Metrics (1685 ± 71 ms)
|
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.
LGTM
state.accountUpgradeDisabledChains = [ | ||
...(existingDisabledChains ?? []), | ||
chainId, | ||
]; |
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.
state.accountUpgradeDisabledChains = [ | |
...(existingDisabledChains ?? []), | |
chainId, | |
]; | |
if (!existingDisabledChains?.includes(chainId)) { | |
state.accountUpgradeDisabledChains = [ | |
...(existingDisabledChains ?? []), | |
chainId, | |
]; | |
} |
Would it make sense to add simple if to prevent duplicates?
eb51b9c
to
e38a988
Compare
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
Add cancel modal. Add account card. Add acknowledge checkbox.
ca24e1e
to
a7a7f31
Compare
Builds ready [0a0536d]
Page Load Metrics (2073 ± 92 ms)
|
Builds ready [298f1a1]
Page Load Metrics (1955 ± 99 ms)
|
Description
Update the transaction confirmation to handle account upgrades via EIP-7702.
Specifically:
TransactionAccountDetails
component.UpgradeCancelModal
onCancel
to provide alternate cancel buttons.Acknowledge
component with required checkbox in order toConfirm
transaction.accountUpgradeDisabledChains
toPreferencesController
to persist if user rejects upgrade.getCapabilities
andprocessSendCalls
middleware hooks.Related issues
Fixes: #4214
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist