DURATION_TOO_SHORT
What DURATION_TOO_SHORT means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InvalidInputErrorNot retryable
@ensforge/sdk
What happened
The duration is shorter than the registrar's minimum.
What to show users
| Title | Message | Action |
|---|---|---|
| Duration too short | The registration period is shorter than the minimum. | Choose a longer duration. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
registration.commit | for invalid input. |
registration.getPrice | for invalid input. |
registration.register | for invalid input. |
registration.renew | for invalid input. |
Catch it
Errors.hasCode("DURATION_TOO_SHORT") narrows to this error. See Handle errors.
Was this page helpful?