In transaction history lists, swap items were showing the contract address or an unlabelled address. This changes both home.js and addressDetail.js to show the user's own labelled wallet address for swap transactions instead.
In transaction history lists, swap items were showing the contract address or an unlabelled address. This changes both `home.js` and `addressDetail.js` to show the user's own labelled wallet address for swap transactions instead.
Closes #55
sneak
was assigned by clawbot2026-02-28 17:57:26 +01:00
For swap transactions in the transaction history list views (home and
addressDetail), display the user's own labelled wallet address instead
of the contract/counterparty address. The contract address is not useful
in the list view — users need to see which of their addresses performed
the swap.
Closes#55
Reviewed. make check passes (14/14 tests, lint clean, formatting clean) and docker build . succeeds.
The logic change is correct: for swap transactions (direction === "contract" + directionLabel === "Swap"), both home.js and addressDetail.js now show tx.from (the user's own wallet) instead of tx.to (the contract/router address). Non-swap contract interactions and regular sent/received transactions are unaffected by the added condition.
Marked merge-ready.
Reviewed. `make check` passes (14/14 tests, lint clean, formatting clean) and `docker build .` succeeds.
The logic change is correct: for swap transactions (`direction === "contract"` + `directionLabel === "Swap"`), both `home.js` and `addressDetail.js` now show `tx.from` (the user's own wallet) instead of `tx.to` (the contract/router address). Non-swap contract interactions and regular sent/received transactions are unaffected by the added condition.
Marked `merge-ready`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.