Function pallet_nfts::pallet::dispatchables::set_attributes_pre_signed
source · pub fn set_attributes_pre_signed<T: Config<I>, I: 'static>(
data: PreSignedAttributesOf<T, I>,
signature: T::OffchainSignature,
signer: T::AccountId,
)
Expand description
Set attributes for an item by providing the pre-signed approval.
Origin must be Signed and must be an owner of the data.item
.
data
: The pre-signed approval that consists of the information about the item, attributes to update and until what block number.signature
: The signature of thedata
object.signer
: Thedata
object’s signer. Should be an Admin of the collection for theCollectionOwner
namespace.
Emits AttributeSet
for each provided attribute.
Emits ItemAttributesApprovalAdded
if the approval wasn’t set before.
Emits PreSignedAttributesSet
on success.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_attributes_pre_signed
.