1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/selectors/tests
Mark Stacey 95a95ee4bc
Refactor transaction list token filtering (#8669)
The transaction list now filters by token in the `TransactionList`
component instead of in the transaction selector. This was done in
preparation for the asset page work.

Technically this approach is slightly less efficient than before, as
we're now filtering the transactions after they've been grouped
together rather than beforehand. The difference is minimal though, and
this method is more correct.

The old filtering was broken because it inappropriately filtered out
cancel transactions. Cancel transactions always have the `to` address
set to the same as the `from` address, and the token filter only
returned transactions where the `to` address was set to the token
address.

Now that we're only filtering by the `to` address of the initial
transaction, token transaction groups will be included in their
entirety, including any cancel transactions.
2020-05-28 00:11:15 -03:00
..
confirm-transaction.test.js Consolidate selector tests (#8510) 2020-05-05 07:05:16 -07:00
custom-gas.test.js Reorganize selectors directory (#8497) 2020-05-02 12:41:17 -07:00
permissions.test.js Localize permission descriptions (#8661) 2020-05-27 18:15:10 -02:30
selectors.test.js Consolidate selector tests (#8510) 2020-05-05 07:05:16 -07:00
send-selectors-test-data.js Disallow all anonymous default export, aside from CSF and migrations (#8535) 2020-05-18 21:18:11 -02:30
send.test.js Delete recent blocks controller (#8575) 2020-05-12 12:40:33 -07:00
tokens.test.js Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
transactions.test.js Refactor transaction list token filtering (#8669) 2020-05-28 00:11:15 -03:00