fix: show own labelled address for swap transactions (closes #55) #57
Ссылка в новой задаче
Block a user
Удалить ветку «fix/55-swap-tx-address»
Удаление ветки необратимо. Несмотря на то, что удаленная ветка может просуществовать некоторое время перед тем, как она будет окончательно удалена, это действие НЕВОЗМОЖНО отменить в большинстве случаев. Продолжить?
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.