tx history for token is missing on 'address-token' view #72
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#72
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
should show 25 most recent tx for that address for that token. not showing any when it has some right now.
address
0x66133E8ea0f5D1d612D2502a968757D1048c214a(the first index address for the DEBUG hardcoded mnemonic) for USDC (obtained via swap).Root cause:
fetchRecentTransactionsinsrc/shared/transactions.jskeyed merged transactions by tx hash alone. A swap (or any multi-token-transfer tx) produces multiple ERC-20 transfers with the same hash, so only the last one survived in the map. The address-token view then filtered by contract address and found nothing.Fix: use composite key
hash:contractAddressfor token transfers so all are preserved. PR #76.