Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

MigrationError

What MigrationError means, which codes it carries and how to catch it in ensforge. ENSv1 to ENSv2 migration is blocked for this name.

Error class5 codes · @ensforge/sdk

ENSv1 to ENSv2 migration is blocked for this name.

Fields

FieldTypeDescription
blockersreadonly string[]

Codes

CodeMeaningRetryable
NOT_ELIGIBLEThe name cannot be migrated to ENSv2 yet.No
ALREADY_MIGRATEDThe name is already on ENSv2.No
NAME_NOT_LOCKEDThe wrapped name is not locked, so it cannot use the locked migration route.No
RECORDS_UNKNOWNThe name's records are not known, so they cannot be copied to its new resolver.No
VERIFICATION_FAILEDThe migration was sent, but the name's ENSv2 state differs from the plan.No

Catch it

Effect.catchTag("MigrationError", …) or error instanceof Errors.MigrationError. See Handle errors.

Was this page helpful?