InvalidInputError
What InvalidInputError means, which codes it carries and how to catch it in ensforge. An argument is invalid. Lists its fields and every code.
Error class10 codes · @ensforge/sdk
An argument is invalid. Detected before any network request.
Fields
| Field | Type | Description |
|---|---|---|
input | unknown | The rejected value. |
field | string | The option it was passed as, when relevant. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
INVALID_NAME | undefined is not a valid ENS name. | No |
INVALID_ADDRESS | undefined is not a valid address. | No |
INVALID_COIN_TYPE | undefined is not a known coin type. | No |
INVALID_CONTENT_HASH | undefined is not a valid content hash. | No |
INVALID_RECORD_VALUE | undefined is not a valid record value. | No |
INVALID_DURATION | undefined is not a valid duration. | No |
DURATION_TOO_SHORT | The duration is shorter than the registrar's minimum. | No |
INVALID_EXPIRY | The expiry cannot be in the past or earlier than the current expiry. | No |
INVALID_ROLES | undefined is not a valid role bitmap. | No |
SALT_TAKEN | A contract was already deployed with this salt. | No |
Catch it
Effect.catchTag("InvalidInputError", …) or error instanceof Errors.InvalidInputError. See Handle errors.
Was this page helpful?