1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/pages/send/send-content/add-recipient
Dan J Miller 0c163dd8aa
Show users a warning when they are sending directly to a token contract (#13588)
* Fix warning dialog when sending tokens to a known token contract address

Fixing after rebase

Covering missed cases

Rebased and ran yarn setup

Rebased

Fix checkContractAddress condition

Lint fix

Applied requested changes

Fix unit tests

Applying requested changes

Applied requested changes

Refactor and update

Lint fix

Use V2 of ActionableMessage component

Adding Learn More Link

Updating warning copy

Addressing review feedback

Fix up copy changes

Simplify validation of pasted addresses

Improve detection of whether this is a token contract

Refactor to leave updateRecipient unchanged, and to prevent the double calling of update recipient

Update tests

fix

* Fix unit tests

* Fix e2e tests

* Ensure next button is disabled while recipient type is loading

* Add optional chaining and a fallback to getRecipientWarningAcknowledgement

* Fix lint

* Don't reset recipient warning on asset change, because we should show recipient warnings regardless of asset

* Update unit tests

* Update unit tests

Co-authored-by: Filip Sekulic <filip.sekulic@consensys.net>
2022-07-13 19:45:38 -02:30
..
add-recipient.component.js Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
add-recipient.component.test.js Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
add-recipient.container.js Track send flow history on txMeta (#14510) 2022-05-04 11:54:46 -05:00
add-recipient.container.test.js Fix order of account list (#12999) 2021-12-10 10:46:24 -06:00
add-recipient.stories.js Updating all caret icons for dark mode 🥕 (#13861) 2022-03-08 13:50:35 -08:00
ens-input.component.js Remove change from cb77f94 that breaks ens inputs in send flow (#15069) 2022-06-28 17:06:55 -02:30
ens-input.container.js fix up ens/hex address validation error handling (#11477) 2021-07-09 09:17:02 -05:00
ens-input.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00