1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages
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
..
add-collectible Fix tokenIds larger than MAX_SAFE_INTEGER converted to scientific notation and failing to import (#15016) 2022-06-27 19:31:25 -05:00
asset Added PR feedback changes 2022-06-08 14:24:50 -07:00
confirm-add-suggested-token Event tracking for Token Detection V2 (#14441) 2022-05-11 16:27:58 -04:00
confirm-approve Add setApprovalForAll confirmation view (#15010) 2022-07-11 22:02:56 -02:30
confirm-decrypt-message MetaMetrics: Add EVENT.CATEGORIES const (#14474) 2022-04-22 13:09:10 -03:00
confirm-deploy-contract Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
confirm-encryption-public-key Enhance reusable SiteOrigin component (#14720) 2022-05-20 09:35:18 -05:00
confirm-import-token Event tracking for Token Detection V2 (#14441) 2022-05-11 16:27:58 -04:00
confirm-send-ether Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
confirm-send-token Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
confirm-token-transaction-base Refactor token send/method confirmation flow (trimmed down) (#13788) 2022-03-09 08:38:12 -06:00
confirm-transaction Add setApprovalForAll confirmation view (#15010) 2022-07-11 22:02:56 -02:30
confirm-transaction-base Improve confirm screen tests (#15163) 2022-07-12 14:53:36 -02:30
confirm-transaction-switch Add setApprovalForAll confirmation view (#15010) 2022-07-11 22:02:56 -02:30
confirmation Adding popular custom network integration (#14557) 2022-06-30 13:49:07 -02:30
connected-accounts Dark Mode: Replace color occurences (#14112) 2022-03-23 16:43:53 +01:00
connected-sites Dark Mode: Replace color occurences (#14112) 2022-03-23 16:43:53 +01:00
create-account Update design tokens library from 1.5 to 1.6 WIP (#14732) 2022-05-25 08:35:36 -07:00
error Dark Mode: Error page (#14107) 2022-03-21 21:18:16 -07:00
first-time-flow Add missing subtitles for secret recovery phrase (#14943) 2022-06-17 14:55:04 -04:00
home Adding popular custom network integration (#14557) 2022-06-30 13:49:07 -02:30
import-token Move search icon and add to storybook (#14940) 2022-06-21 10:18:35 -05:00
keychains MetaMetrics: Add EVENT.CATEGORIES const (#14474) 2022-04-22 13:09:10 -03:00
lock remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
mobile-sync Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
notifications Snap notifications integration (#14605) 2022-06-01 19:09:13 +02:00
onboarding-flow Add missing subtitles for secret recovery phrase (#14943) 2022-06-17 14:55:04 -04:00
permissions-connect Include snap version in pill (#14803) 2022-06-02 11:38:39 +02:00
routes Snap notifications integration (#14605) 2022-06-01 19:09:13 +02:00
send Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:46:30 -02:30
settings Add feature flag to prevent add popular networks from being available on prod (#15117) 2022-07-04 12:20:37 -02:30
swaps Show how much a cancellation of a smart transaction will cost (#15011) 2022-06-22 18:58:51 +02:00
token-details Update token detection logic to only control auto-detection (#14251) 2022-04-06 13:59:16 -04:00
unlock-page Overall CSS #13441 (#13902) 2022-05-16 13:38:04 -05:00
index.js Renamed metametrics.new.js to metametrics.js (#14327) 2022-04-01 14:11:12 -05:00
pages.scss Snap notifications integration (#14605) 2022-06-01 19:09:13 +02:00