1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/app
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
..
components Reapply view quote screen designs (#9905) 2020-12-08 10:47:53 -06:00
contexts add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00
css Use 1px borders on inputs and buttons (#9766) 2020-10-30 13:31:42 -05:00
ducks Fix 9906 - Prevent unwanted 'no quotes available' message when going back to build quote screen while having insufficient funds (#9994) 2020-12-07 09:13:24 -06:00
helpers Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
hooks Use strict equality in unit tests (#9966) 2020-12-03 09:46:22 -06:00
pages Fix token validation in Send flow (#10045) 2020-12-10 14:28:19 -03:30
selectors Remove unused state from Redux gas slice (#9975) 2020-12-03 16:23:36 -03:30
store add new MetaMetricsController (#9857) 2020-12-02 15:41:30 -06:00