# SALT_TAKEN

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

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

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

<ErrorMeta errorClass="InvalidInputError" href="/docs/reference/errors/invalid-input-error" package="@ensforge/sdk" />

## What happened [#what-happened]

A contract was already deployed with this salt.

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

| Title | Message | Action |
| --- | --- | --- |
| Already created | A resolver was already created with these settings. | Use the existing resolver, or create a new one. |

## How to fix [#how-to-fix]

Use the existing contract, or pass another `salt`.

## 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 |
| --- | --- |
| [`resolver.create`](/docs/reference/sdk/resolver/create) | for invalid input, or a `salt` whose resolver already exists. |

## Catch it [#catch-it]

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