Errors/Chain errors
CannotAddSelfAsDelegateDependency
Check the argument values against the operation schema
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.
Remediation
Check the argument values against the operation schema
The same explanation is available in the terminal: btcli explain CannotAddSelfAsDelegateDependency.