# DelegateDependencyAlreadyExists (/docs/errors/chain/DelegateDependencyAlreadyExists)

The contract called `lock_delegate_dependency` for a code hash it has already locked. Check the contract's recorded delegate dependencies before adding, and unlock the old entry first if replacing it.

Declared by the `Contracts` pallet; it classifies to the semantic code [`already_exists`](/docs/errors/already-exists).

## Remediation [#remediation]

The object or state already exists; treat the goal as met or pick a different target

The same explanation is available in the terminal: `btcli explain DelegateDependencyAlreadyExists`.
