reverse ens lookups don't seem to be working anymore #22
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
it's just showing the bare plain address, even though it has a .eth reverse
the ens names show for addresses where i typed in the ens name when sending, but not for other addresses that definitely have reverse ens names. please fix.
Taking this — investigating reverse ENS lookup logic now.
Root cause found and fixed in PR #25.
In both
addressDetail.jsandaddressToken.js, the ENS reverse lookup code only collected one address per transaction — the counterparty based on send/receive direction. This had two bugs:tx.frominstead oftx.to)tx.fromEnsandtx.toEnswere read from the ENS map, but only one side was ever looked upThe fix: collect ALL unique
fromandtoaddresses for ENS resolution instead of just the counterparty. This ensures every displayed address gets a reverse ENS lookup viaprovider.lookupAddress().Investigating. The ENS reverse resolution code (
src/shared/ens.js) usesethers.JsonRpcProvider.lookupAddress()which should work. Possible causes:ethereum-rpc.publicnode.com) may not supporteth_callto the ENS reverse registrarnullresult gets cached and blocks retriesgetProvider()creates a new provider instance each call, which may cause connection/timeout issuesWill investigate further and test with different RPC endpoints.