1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/app
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
..
_locales Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
build-types Dark Mode: Create Theme-friendly top left logo component (#13897) 2022-03-11 10:45:13 -06:00
fonts Add euclid fontface (#9018) 2020-07-27 17:15:44 -05:00
images Adding popular custom network integration (#14557) 2022-06-30 13:49:07 -02:30
manifest manifest: add https://chainid.network/chains.json (#14810) 2022-06-06 19:13:42 -05:00
scripts Added metrics for adding a new network (#15176) 2022-07-13 11:47:13 -02:30
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Add applyLavaMoat build flag (#14583) 2022-04-29 15:56:30 -07:00
home.html Remove junk from previous ticket 2022-06-08 14:24:49 -07:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html revert indenting change 2022-06-08 14:24:49 -07:00
popup.html Remove junk from previous ticket 2022-06-08 14:24:49 -07:00
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00