1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/test
Dan J Miller c63714c4f2 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:46:30 -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:46:30 -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 Add lockdown e2e test (#12562) 2021-11-02 17:01:01 -07:00
env.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
setup.js colocate tests in flat structure (#10655) 2021-03-16 16:00:08 -05:00
test-unit-combined.sh Fix unit test package scripts (#12278) 2021-10-06 07:35:23 -07:00
test-unit-jest.sh Fix unit test package scripts (#12278) 2021-10-06 07:35:23 -07:00