CannotAddSelfAsDelegateDependency
Error v334 → current 29.35A contract cannot add its own code hash as a delegate dependency.
Encountered by: developers
Why This Error Exists
Delegate dependencies are for calling external code. A contract cannot depend on itself.
From Chain Metadata
Can not add a delegate dependency to the code hash of the contract itself.
What This Means
A contract cannot add its own code hash as a delegate dependency.
Common Causes
- Trying to lock your own code as a delegate dependency
- Circular dependency attempt
How to Fix
- Delegate dependencies should reference OTHER code hashes
- Remove the self-referential dependency
Storage to Check
Runtime Info
- Pallet Index
- 29
- Error Index
- 35
- Error Code
- 29.35
- Runtime Version
- v393