# CONTRACT_REVERTED

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What CONTRACT_REVERTED means, why ContractRevertError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/CONTRACT_REVERTED

<ErrorMeta errorClass="ContractRevertError" href="/docs/reference/errors/contract-revert-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The contract call reverted.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Transaction would fail | The network rejected this action. |  |

## Retry safety [#retry-safety]

Retrying the same call fails the same way until the cause is fixed (`retryable: false`).

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`plan.resume`](/docs/reference/sdk/plan/resume) | , or the failing step's own error (`Errors.AnyError`: a plan can hold any step), with `context.planId` and `context.step`. |
| [`plan.send`](/docs/reference/sdk/plan/send) | , or the failing step's own error (`Errors.AnyError`: a plan can hold any step), with `context.planId` and `context.step`. |

Any action can fail with `ContractRevertError`: it is part of `Errors.CommonError`.

## Catch it [#catch-it]

`Errors.hasCode("CONTRACT_REVERTED")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).