# Moving ENS names to ENSv2

> How the ENS Manager moves names from ENSv1 to ENSv2: one receiver for each kind of name, one transaction for every batch, and a check after each one.

- Published: 2026-11-10
- Updated: 2026-11-10
- Source: https://yoginth.com/blog/ensv2-migration

ENSv2 replaces the contracts ENS names have lived in for years. Every existing `.eth` name has to move across, and only its owner can move it. I worked on the feature that does that in the [ENS Manager](https://github.com/ensdomains/apps-monorepo): the Upgrade button. This is what I learned building it.

## Every name is already reserved

The first thing I had to understand was that the upgrade doesn't create anything. Before anyone presses Upgrade, ENS reserves every active `.eth` name in ENSv2. A reservation has no owner yet, and it falls back to ENSv1, so a name keeps resolving whether or not it upgrades. Upgrading means claiming that reservation by giving up the ENSv1 token.

Expiry was the first edge case I hit. The reservation runs 62 days past the ENSv1 expiry, and both grace periods end on the same day:

> Interactive figure: Days relative to one name's ENSv1 expiry, to scale. Use the arrow keys on the slider to move one day at a time. [View it on the page](https://yoginth.com/blog/ensv2-migration).

A name in grace can't be transferred, so I made the Manager renew it first and then upgrade it.

## One kind of name, one receiver

You upgrade a name by sending its token to an ENSv2 migration contract. That contract does the migration as it receives the token, or rejects it, and then nothing moves at all.

ENSv1 names come in a few kinds: plain `.eth` names, wrapped ones, and locked ones whose permissions can never be loosened. Each kind has exactly one contract that will accept it, so the Manager has to work out the kind before it sends anything. I came to like this design: a wrong guess fails instead of half-migrating a name.

> Interactive figure: Where each kind of ENSv1 name goes when it upgrades. [View it on the page](https://yoginth.com/blog/ensv2-migration).

Locked names took the most care. Their fuses become ENSv2 roles, so anything the owner promised in ENSv1, like never changing the resolver, still holds afterwards. I had the Manager check those roles after every upgrade rather than trust that they landed.

## Subnames come along, or hold you back

Subnames were the hardest part, because they can belong to anyone. Locked subnames move themselves once their parent has. Simpler ones are copied into a new registry for the parent, still owned by whoever owned them. Anything the Manager can't carry blocks the parent: I'd rather refuse an upgrade than strand someone's live subname.

> Interactive figure: Two example names and their subnames. Delete what blocks the parent, then upgrade it. [View it on the page](https://yoginth.com/blog/ensv2-migration).

## One transaction for everything

I didn't want a half-finished upgrade if one step failed. So the Manager gives each wallet a small smart account and sends every upgrade through it as a single transaction: a batch of names either all move or none do. Here is one name inside that transaction:

> Interactive figure: One plain .eth name upgrading. Solid arrows are calls and the dashed arrow is a response. [View it on the page](https://yoginth.com/blog/ensv2-migration).

The same transaction also copies the name's records into its new resolver, so addresses and profile text don't go missing along the way.

## Checking the result

The rule I leaned on most: a sent transaction isn't proof that the right thing happened. After each batch, the Manager reads the new state at that exact block and checks it: owner, resolver, expiry, roles and every record.

People close tabs, so I planned for that too. Before opening the wallet, the Manager saves which batch it is sending. When you come back, it looks that transaction up on-chain and picks up from what actually landed, not from what it hoped would.
