fix: show own labelled address for swap transactions (closes #55) #57
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#57
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/55-swap-tx-address"
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?
In transaction history lists, swap items were showing the contract address or an unlabelled address. This changes both
home.jsandaddressDetail.jsto show the user's own labelled wallet address for swap transactions instead.Closes #55
Reviewed.
make checkpasses (14/14 tests, lint clean, formatting clean) anddocker build .succeeds.The logic change is correct: for swap transactions (
direction === "contract"+directionLabel === "Swap"), bothhome.jsandaddressDetail.jsnow showtx.from(the user's own wallet) instead oftx.to(the contract/router address). Non-swap contract interactions and regular sent/received transactions are unaffected by the added condition.Marked
merge-ready.