tx history for token is missing on 'address-token' view #72

Closed
opened 2026-02-28 21:01:41 +01:00 by sneak · 1 comment
Owner

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).

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).
sneak added the
bot
label 2026-02-28 21:01:41 +01:00
clawbot self-assigned this 2026-02-28 21:07:16 +01:00
Collaborator

Root cause: fetchRecentTransactions in src/shared/transactions.js keyed 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:contractAddress for token transfers so all are preserved. PR #76.

Root cause: `fetchRecentTransactions` in `src/shared/transactions.js` keyed 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:contractAddress` for token transfers so all are preserved. PR #76.
clawbot removed their assignment 2026-02-28 21:09:06 +01:00
clawbot self-assigned this 2026-02-28 21:10:20 +01:00
clawbot removed their assignment 2026-02-28 21:10:31 +01:00
clawbot self-assigned this 2026-02-28 21:13:43 +01:00
clawbot removed their assignment 2026-02-28 21:13:55 +01:00
sneak closed this issue 2026-02-28 21:22:05 +01:00
clawbot removed the
bot
label 2026-02-28 21:27:31 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/AutistMask#72
No description provided.