# CannotAddSelfAsDelegateDependency (/docs/errors/chain/CannotAddSelfAsDelegateDependency)

A contract called `lock_delegate_dependency` with its own code hash, which is not permitted. Check the code hash argument passed to the delegate dependency API against the contract's own code hash.

Declared by the `Contracts` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

## Remediation [#remediation]

Check the argument values against the operation schema

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