fix: add reverse ENS lookups for all displayed addresses (closes #22) #25
Reference in New Issue
Block a user
Delete Branch "fix/reverse-ens-lookups"
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?
Problem
ENS names only showed for addresses where the user originally typed an ENS name. Addresses with reverse ENS records but entered as hex showed as bare addresses.
Root Cause
In both
addressDetail.jsandaddressToken.js, the ENS reverse lookup only collected one address per transaction (the counterparty based on direction). This meant:tx.towas displayed buttx.fromwas looked up (wrong side)tx.fromEns/tx.toEnswere read from the map but only one side was ever resolvedFix
Collect ALL unique
fromandtoaddresses from transactions for ENS resolution, not just the single counterparty. This ensures every displayed address gets a reverse ENS lookup.make checkoutputmake checkresults:All checks pass with zero failures.
Code Review
LGTM — changes ENS resolution in tx lists to collect ALL addresses (both
fromandto) instead of just the counterparty. This means reverse lookups work for every displayed address.Depends on PR #24 being merged first (otherwise the lookup failures will still cache
nulland wipe names). Merge order: #24 → #25.Formatting clean. Assigning to sneak.