1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/send
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
..
send-content Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
send-footer MetaMetrics: Add EVENT.CATEGORIES const (#14474) 2022-04-22 13:09:10 -03:00
send-header Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
index.js Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00
send.constants.js Feat/collectibles send flow (#13048) 2022-01-10 10:23:53 -06:00
send.js Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
send.scss Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
send.test.js Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
send.utils.js Ensure that addresses are properly hex-prefixed in the generate ERC token transfer functions (#15064) 2022-06-28 14:21:09 -02:30
send.utils.test.js Ensure that addresses are properly hex-prefixed in the generate ERC token transfer functions (#15064) 2022-06-28 14:21:09 -02:30