1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/ducks
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
..
alerts remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
app Adding popular custom network integration (#14557) 2022-06-30 13:49:07 -02:30
confirm-transaction Fix issue where we show contract address as recipient when calling safe transfer method on erc721 or erc1155 contracts (#13535) 2022-03-17 13:35:40 -05:00
gas rely upon gas fee controller for gas price estimates (#11511) 2021-07-16 11:06:32 -05:00
history remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
locale remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
metamask update gas fees (#13646) 2022-03-25 21:11:04 +04:00
send Show users a warning when they are sending directly to a token contract (#13588) 2022-07-13 19:45:38 -02:30
swaps Reduce the default slippage from 3% to 2% (#14863) 2022-06-07 18:28:59 +02:00
ens.js Support for ENS wildcard and offchain resolution (#14675) 2022-07-12 09:30:31 -05:00
index.js Refactor send page state management (#10965) 2021-06-23 16:35:25 -05:00