status-go/appdatabase/migrations/sql/1686825075_cleanup_token_address.up.sql
Stefan 8e63f44735 feat(wallet) filter activity by erc20
Main changes:

- Refactor activity API to propagate token identities.
- Extend service to convert token identities to symbols for filtering
  multi-transaction
- Filter transfers, pending_transactions and multi-transactions based
  on the provided token identities
- Return involved token identities in activity API
- Test token filtering

Also:

- Fixed calling cancel on a filer activity completed task to release
  resources

Notes:

- Found limitations with the token identity which complicates things
  by not allowing to filter by token groups (like token-code does)

Updates status-desktop #11025
2023-06-20 14:06:49 +02:00

4 lines
273 B
SQL

-- Fix the token_address column in the transfers table that has been
-- incorrectly set to a string of the form "0x12ab..34cd" instead of a byte array
UPDATE transfers SET token_address = replace(replace(token_address, '0x', ''), '"', '') WHERE token_address LIKE '"0x%"';