Origin must be either ForceOrigin or Signed and the sender should be the Admin of
the collection.
If the origin is Signed, then funds of signer are reserved according to the formula:
MetadataDepositBase + DepositPerByte * data.len taking into
account any already reserved funds.
collection: The identifier of the item whose metadata to update.
data: The general information of this item. Limited in length by StringLimit.
Set the metadata for a collection.
Origin must be either
ForceOrigin
orSigned
and the sender should be the Admin of thecollection
.If the origin is
Signed
, then funds of signer are reserved according to the formula:MetadataDepositBase + DepositPerByte * data.len
taking into account any already reserved funds.collection
: The identifier of the item whose metadata to update.data
: The general information of this item. Limited in length byStringLimit
.Emits
CollectionMetadataSet
.Weight:
O(1)