Skip to content

chore: upgrade to ENSv2 (Universal Resolver) - #1286

Open
Dhaiwat10 wants to merge 1 commit into
nounsDAO:masterfrom
ens-integrations:ensv2-upgrade
Open

chore: upgrade to ENSv2 (Universal Resolver)#1286
Dhaiwat10 wants to merge 1 commit into
nounsDAO:masterfrom
ens-integrations:ensv2-upgrade

Conversation

@Dhaiwat10

Copy link
Copy Markdown

Hey! I'm Dhaiwat from the DevRel team at ENS Labs. We're working on getting active repos and libraries across the ecosystem ready for ENSv2.

Summary

Upgrades this repo to be ENSv2-ready by routing ENS resolution through the Universal Resolver (0xeeeeeeee14d718c2b47d9923deab1335e144eeee) instead of the legacy ENS Registry.

Changes

  • Bump the viem entry in pnpm-workspace.yaml's catalog from ^2.33.0^2.48.11 (Universal Resolver + CCIP-Read built in from 2.35.0). Workspace packages continue to reference "viem": "catalog:" so the catalog convention is preserved.

viem (via wagmi) is used for ENS at:

  • packages/nouns-webapp/src/components/ShortAddress.tsx (useEnsName, useEnsAvatar)
  • packages/nouns-webapp/src/components/ChangeDelegatePanel/index.tsx:94 (useEnsAddress — resolves vitalik.eth style input before delegating, where a stale resolution would route to the wrong address)
  • packages/nouns-webapp/src/components/VoteSignals/VoteSignal.tsx (useEnsName)

Why

The current path returns stale results for names managed by the new Universal Resolver. For example, ur.integration-tests.eth should resolve to 0x2222222222222222222222222222222222222222; legacy resolution returns incorrect values.

More details: https://docs.ens.domains/web/ensv2-readiness

Verification

  • ur.integration-tests.eth0x2222222222222222222222222222222222222222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant