fix: show user's own address for swap transactions in tx list
check / check (push) Successful in 22s
check / check (push) Successful in 22s
For swap/contract interactions, display the user's own (labelled) address instead of the contract address, so users can see which of their addresses initiated the swap. Fixes #55
This commit is contained in:
1 parent
fb67359b3f
commit
868f7a6ff8
1 file changed
+3
-1
@@ -187,7 +187,9 @@ function renderTransactions(txs) {
|
||||
let i = 0;
|
||||
for (const tx of txs) {
|
||||
const counterparty =
|
||||
tx.direction === "sent" || tx.direction === "contract"
|
||||
tx.direction === "contract"
|
||||
? tx.from
|
||||
: tx.direction === "sent"
|
||||
? tx.to
|
||||
: tx.from;
|
||||
const ensName = ensNameMap.get(counterparty) || null;
|
||||
|
||||
Reference in new issue
Block a user