CommitmentError
What CommitmentError means, which codes it carries and how to catch it in ensforge. A .eth commit-reveal registration step is out of order or out of time.
Error class4 codes · @ensforge/sdk
A .eth commit-reveal registration step is out of order or out of time.
Fields
| Field | Type | Description |
|---|---|---|
commitment | Hex | Hash of the commitment the step concerns, when known. |
readyAt | bigint | Unix time (seconds) from which register succeeds. |
expiresAt | bigint | Unix time (seconds) after which the commitment is too old. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
COMMITMENT_TOO_NEW | The registration commitment is not ready yet. | Yes |
COMMITMENT_TOO_OLD | The registration commitment has expired. | No |
COMMITMENT_EXISTS | An unexpired commitment with the same data already exists. | No |
COMMITMENT_NOT_FOUND | No commitment was found for this registration. | No |
Catch it
Effect.catchTag("CommitmentError", …) or error instanceof Errors.CommitmentError. See Handle errors.
Was this page helpful?