1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/test
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
..
data Snap notifications integration (#14605) 2022-06-01 19:09:13 +02:00
e2e Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
helpers Dark Mode : Add OS option in theme selection dropdown (#14379) 2022-04-28 14:36:28 +02:00
jest Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
lib Removed metrics event (#14042) 2022-03-29 08:46:24 -05:00
mocks Permission System 2.0 (#12243) 2021-12-06 19:16:49 -08:00
stub Upgrade ganache - continued (#13354) 2022-01-20 16:56:52 +00:00
unit-global
env.js
setup.js
test-unit-combined.sh
test-unit-jest.sh