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
| Field | Type | Description |
|---|---|---|
blockers | readonly string[] |
Codes
| Code | Meaning | Retryable |
|---|---|---|
NOT_ELIGIBLE | The name cannot be migrated to ENSv2 yet. | No |
ALREADY_MIGRATED | The name is already on ENSv2. | No |
NAME_NOT_LOCKED | The wrapped name is not locked, so it cannot use the locked migration route. | No |
RECORDS_UNKNOWN | The name's records are not known, so they cannot be copied to its new resolver. | No |
VERIFICATION_FAILED | The 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?