Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

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

FieldTypeDescription
errorNamestringDecoded error name, e.g. InvalidRecord, when the ABI knows it.
argsreadonly unknown[]
dataHexRaw revert data.

Codes

CodeMeaningRetryable
CONTRACT_REVERTEDThe contract call reverted.No

Catch it

Effect.catchTag("ContractRevertError", …) or error instanceof Errors.ContractRevertError. See Handle errors.

Was this page helpful?