Repository navigation
fix: resolve ENSv2 names on mainnet - #2460
Merged
Merged
Conversation
ENSv2 went live on mainnet on 2026-10-27. The ENS helper only had the ENSv2 contracts for Sepolia, so on mainnet a name registered in ENSv2 had no owner and a migrated name was owned by the ENS Graveyard: the real owner was never the controller and could not edit the space. Add the mainnet UniversalHelper, ENSV1Resolver and DNSTLDResolver so mainnet takes the ENSv2 path Sepolia already uses. Co-Authored-By: Claude <noreply@anthropic.com>
With mainnet on ENSv2 every ENS chain reads records through the Universal Resolver, so deepResolve, the Stamp address fallback and the resolvers list are unreachable. The owner lookup is unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
aavegotchi.eth was not migrated: it expired and another address registered it in ENSv2. ethenagovernance.eth kept its owner through the migration and its ENSv2 registration runs until 2029. Co-Authored-By: Claude <noreply@anthropic.com>
Picks up the mainnet ENSv2 addresses, so the sequencer and hub resolve the controller of names registered in or migrated to ENSv2. Co-Authored-By: Claude <noreply@anthropic.com>
The name expired and was registered in ENSv2 by another address, which would become controller of the space with the ENSv2 lookup. Report no controller for it until the case is settled. Admins keep their rights. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ENSv2 went live on mainnet on 2026-10-27. The UI's ENS helper has the ENSv2 lookup but only Sepolia is configured, so on mainnet:
isControllerand cannot edit the space (unless listed as admin)snapshottext record set on an ENSv2 resolver is not read, so the Controller tab shows0x0000…0000for a space the sequencer already accepts (aavegotchi-dao.eth)No resolver set for nameon those namesThis adds the mainnet
UniversalHelper,ENSV1ResolverandDNSTLDResolver, so mainnet takes the path Sepolia already uses. Same addresses and same onchain checks as snapshot-labs/snapshot.js#1263, which fixes the sequencer side (not allowedwhen creating a space on an ENSv2 name).With both chains on ENSv2 the v1 record path can no longer run, so the second commit deletes it:
deepResolve, the Stamp address fallback and the unusedresolverslist. The owner lookup (getNameOwner,getResolverDetails) is otherwise untouched. Net -36 lines.Behaviour changes on mainnet
resolveName,getEnsTextRecord) are now read through the Universal Resolver instead of the v1 registry, as on Sepolia. Across 1,728 space names ending in.eth: 415 that returned nothing now resolve (migrated names, CCIP names such as*.base.eth), 467 expired names stop resolving to a stale address, 59 whose resolver reverts now throw instead of returning nothing.aavegotchi.eththe largest). The UI shows that address as controller, where it shows the Graveyard today. The sequencer already accepts asnapshottext record from that address, so this follows what the holder can do today.web3.wanki.moe,lucemans-test-not-exist.cb.id,lucemans-test-not-exist.cbars.id): the address read now goes through the Universal Resolver, which reverts for them.Sequencer and hub
The last commit bumps
@snapshot-labs/snapshot.jsto 0.18.1 (snapshot-labs/snapshot.js#1263, now released) inapps/sequencerandapps/hub. This is what fixes space creation: the sequencer rejected the settings message withnot allowedbecause the owner of an ENSv2 name resolved to0x0000…0000. Merging looks like it deploys both: the live sequencer and hub report the current master commit as their version.Temporary lock on
aavegotchi.ethaavegotchi.eth(86k followers) expired and was registered in ENSv2 by an address that is not Aavegotchi. With the ENSv2 lookup that address would become controller, able to edit the space, remove its admins and delete it. The last commit makes the sequencer report no controller for this space (CONTROLLER_LOCKED_SPACESinapps/sequencer/src/helpers/utils.ts), which also closes thesnapshottext record path that works today. Current admins and moderators keep their rights, and the admin list cannot change while the lock is on. The UI still shows the ENSv2 holder on the Controller tab, but the sequencer answersnot allowed. To remove once the case is settled.Test plan
ethenagovernance.eth).ethsubdomains the sequencer resolves through their address record)snapshottext record write on an ENSv2 resolver is accepted from the name owner and reverts from another addressaavegotchi.ethshows its ENSv2 holder0xb54a…cb08where snapshot.box shows the Graveyard0xDa02…B7F6,fabien.eth,coincollect.appandsnapshot.dcl.ethshow the same controller as the sequencer lookup, and expireddydxgov.ethshows0x0000…0000aavegotchi-dao.ethshows0x027F…660cwhere snapshot.box shows0x0000…0000, and migratedethenagovernance.ethshows its owner0xC5ce…D6cbgetSpaceControllercalled fromapps/sequencerreturns the owner forpots1000.eth(the reported name,0x0000…0000before),aavegotchi-dao.ethandethenagovernance.eth, and unchanged controllers forfabien.eth,ens.eth,stakedao.ethandcoincollect.appapps/sequencerandapps/hubaavegotchi.ethin any letter case without calling the lookup, and thedelete-spacewriter rejects the name holder withnot allowed🤖 Generated with Claude Code