-
Notifications
You must be signed in to change notification settings - Fork 2
Support ENS name resolution in address parameters #6
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Allow tools that accept addresses to also accept ENS names (e.g., vitalik.eth).
Current behavior
Address parameters accept:
- Ethereum addresses (
0x1234...) - Participant names from the trust registry (
"WeatherOracle") - Self-reference (
"me") - Index reference (
"#1","#2")
Proposed behavior
Also accept ENS names like vitalik.eth, resolving them via the ENS registry on L1.
Suggested approach
- Detect
.ethsuffix in the address resolver (src/utils/) - Use viem's
getEnsAddressto resolve - Cache resolutions to avoid repeated lookups
- Fall through to existing resolution if ENS fails
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers