1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui
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
..
__mocks__ Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
components removed i18nValue component (#15179) 2022-07-12 19:29:38 +05:30
contexts Renamed metametrics.new.js to metametrics.js (#14327) 2022-04-01 14:11:12 -05:00
css Changed asset option prop type requirements 2022-06-08 14:24:34 -07:00
ducks Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
helpers Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
hooks Add setApprovalForAll confirmation view (#15010) 2022-07-11 18:32:55 -05:00
pages Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
selectors Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
store Remove global transaction state from send flow (#14777) 2022-07-01 08:58:35 -05:00
index.js Add friendly error handling when background throws an error before listening for connection (#14461) 2022-06-08 00:37:15 +04:00
index.test.js Add friendly error handling when background throws an error before listening for connection (#14461) 2022-06-08 00:37:15 +04:00