SALT_TAKEN
What SALT_TAKEN means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InvalidInputErrorNot retryable
@ensforge/sdk
What happened
A contract was already deployed with this salt.
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
Use the existing contract, or pass another salt.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
resolver.create | for invalid input, or a salt whose resolver already exists. |
Catch it
Errors.hasCode("SALT_TAKEN") narrows to this error. See Handle errors.
Was this page helpful?