pub fn transfer_ownership<T: Config<I>, I: 'static>(
collection: T::CollectionId,
new_owner: <<T as Config>::Lookup as StaticLookup>::Source,
)Expand description
Change the Owner of a collection.
Origin must be Signed and the sender should be the Owner of the collection.
The collection’s total deposit is moved from the current to the new owner. Fails with
Error::IncompleteDepositTransfer if a lock or freeze on the current owner blocks
the full transfer; clear it and retry.
collection: The collection whose owner should be changed.owner: The new Owner of this collection. They must have calledset_accept_ownershipwithcollectionin order for this operation to succeed.
Emits OwnerChanged.
Weight: O(1)
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::transfer_ownership.