Function ink_env::unlock_delegate_dependency
source · pub fn unlock_delegate_dependency<E>(code_hash: &E::Hash)where
E: Environment,
Expand description
Unlocks the delegate dependency from the contract.
This removes the lock and refunds the deposit from the call to
lock_delegate_dependency
. The code of the dependency can be removed if the
reference count for the code hash is now zero.
§Errors
- If the delegate dependency does not exist.