1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
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
..
components Refactor transaction list token filtering (#8669) 2020-05-28 00:11:15 -03:00
contexts Use createContext for metametrics context (preserve legacy context) (#8540) 2020-05-08 11:41:43 -05:00
css Make address display wider in Account Details (#8665) 2020-05-27 20:11:44 -02:30
ducks Add default values for preferences (#8584) 2020-05-13 11:53:00 -03:00
helpers Implement new transaction list design (#8564) 2020-05-26 15:49:11 -05:00
hooks resolve remaining issues with transaction list (#8659) 2020-05-27 14:45:20 -05:00
pages Refactor transaction list token filtering (#8669) 2020-05-28 00:11:15 -03:00
selectors Refactor transaction list token filtering (#8669) 2020-05-28 00:11:15 -03:00
store Fix token decimal type (#8670) 2020-05-27 22:33:59 -03:00