-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add alert when selected account is different from signing accoun…
…t in confirmation (#28562) ## **Description** Show warning when signing account in confirmation is different from currently selected account in MM. ## **Related issues** Fixes: #28015 ## **Manual testing steps** 1. Go to test dapp and connect with an account 2. Switch to a different account 3. Submit a confirmation and check warning next to signing account ## **Screenshots/Recordings** Signature Request: <img width="358" alt="Screenshot 2024-11-20 at 6 12 02 PM" src="https://github.com/user-attachments/assets/34dcd6c6-8e19-4f92-b258-735373e4181b"> Contract Interaction: <img width="359" alt="Screenshot 2024-11-20 at 6 12 16 PM" src="https://github.com/user-attachments/assets/44aef003-bed7-4896-9c5b-55b016c052f8"> Send token: <img width="360" alt="Screenshot 2024-11-20 at 6 47 29 PM" src="https://github.com/user-attachments/assets/af1c6729-ccd0-4211-9524-e4eae4aea4e2"> ## **Pre-merge author checklist** - [X] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [X] I've completed the PR template to the best of my ability - [X] I’ve included tests if applicable - [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [X] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
- Loading branch information
Showing
24 changed files
with
2,123 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
375 changes: 375 additions & 0 deletions
375
ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
2 changes: 2 additions & 0 deletions
2
ui/pages/confirmations/components/confirm/info/approve/revoke-details/revoke-details.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import React from 'react'; | ||
import { ConfirmInfoSection } from '../../../../../../../components/app/confirm/info/row/section'; | ||
import { OriginRow } from '../../shared/transaction-details/transaction-details'; | ||
import { SigningInWithRow } from '../../shared/sign-in-with-row/sign-in-with-row'; | ||
|
||
export const RevokeDetails = () => { | ||
return ( | ||
<ConfirmInfoSection> | ||
<OriginRow /> | ||
<SigningInWithRow /> | ||
</ConfirmInfoSection> | ||
); | ||
}; |
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
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
Oops, something went wrong.