fix: preserve multiple token transfers per tx hash in transaction history #75
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#75
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-72-address-token-tx-history"
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?
When a swap produces multiple ERC-20 token transfers with the same tx hash (e.g. send WETH + receive USDC), only the last transfer was kept because
txsByHashwas keyed by bare tx hash. This caused the address-token view to show no transactions for tokens obtained via swap.Use a composite key (
hash:contractAddress) so all token transfers are preserved. The bare-hash normal-tx entry is removed when token transfers replace it to avoid duplication.docker build .passes.Closes #72
Closing as duplicate of #76.
Pull request closed