1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages
Mark Stacey 4350a1422e
Fix token validation in Send flow (#10045)
Additional validation was added in #9907 to ensure that the "Known
contract address" warning was shown when sending tokens to another
token address after switching assets on the Send screen. Unfortunately
this change had the unintended side-effect of preventing _all_ token
sends after switching assets, so long as the recipient was not an
internal address.

The problem is that the `validate` function expects to be passed the
address of the token send recipient in the case where a token is
selected. Instead the token address was being passed to the validate
function.

The `query` state is now used, which should always contain the
recipient address. This is the same state used in the only other place
the `validate` function is called.
2020-12-10 14:28:19 -03:30
..
add-token Fix TokenList component name (#10030) 2020-12-09 17:02:38 -03:30
asset Override font-weight from Paragraph and set to 900 (#9918) 2020-11-19 12:29:35 -08:00
confirm-add-suggested-token Track a new schema event when adding a token (#9810) 2020-11-17 11:39:21 -06:00
confirm-add-token Track a new schema event when adding a token (#9810) 2020-11-17 11:39:21 -06:00
confirm-approve Provide alternative text for images where appropriate 2020-11-11 09:38:15 -06:00
confirm-decrypt-message Provide alternative text for images where appropriate 2020-11-11 09:38:15 -06:00
confirm-deploy-contract [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
confirm-encryption-public-key Provide alternative text for images where appropriate 2020-11-11 09:38:15 -06:00
confirm-send-ether Use optional chaining for functions 2020-11-05 10:28:24 -06:00
confirm-send-token Use optional chaining for functions 2020-11-05 10:28:24 -06:00
confirm-token-transaction-base Merge pull request #9853 from darkwing/image-updates 2020-11-13 13:44:55 -06:00
confirm-transaction Remove use of ethgasstation; use metaswap /gasPrices api for gas price estimates (#9867) 2020-12-02 19:55:19 -03:30
confirm-transaction-base Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
confirm-transaction-switch Use optional chaining for functions 2020-11-05 10:28:24 -06:00
connected-accounts [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
connected-sites [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
create-account Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
error [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
first-time-flow Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
home Track whether seed phrase has been backed up (#9830) 2020-11-10 12:34:20 -03:30
keychains Autofocus input, improve accessibility of restore page (#9748) 2020-11-03 12:40:12 -06:00
lock Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
mobile-sync [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
permissions-connect [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
routes Revert "Remove unnecessary lock page (#9793)" (#9825) 2020-11-09 10:20:24 -03:30
send Fix token validation in Send flow (#10045) 2020-12-10 14:28:19 -03:30
settings Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
swaps Reapply view quote screen designs (#9905) 2020-12-08 10:47:53 -06:00
unlock-page Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
index.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
pages.scss