ContractRevertError
What ContractRevertError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code.
Error class1 codes · @ensforge/sdk
A contract reverted with an error ensforge does not map to a more specific class.
Any action can fail with ContractRevertError: it is part of Errors.CommonError.
Fields
| Field | Type | Description |
|---|---|---|
errorName | string | Decoded error name, e.g. InvalidRecord, when the ABI knows it. |
args | readonly unknown[] | |
data | Hex | Raw revert data. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
CONTRACT_REVERTED | The contract call reverted. | No |
Catch it
Effect.catchTag("ContractRevertError", …) or error instanceof Errors.ContractRevertError. See Handle errors.
Was this page helpful?