mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
Corrected description of clear_attribute extrinsic (#10729)
This commit is contained in:
@@ -1003,21 +1003,18 @@ pub mod pallet {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set an attribute for an asset class or instance.
|
/// Clear an attribute for an asset class or instance.
|
||||||
///
|
///
|
||||||
/// Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
/// Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||||
/// asset `class`.
|
/// asset `class`.
|
||||||
///
|
///
|
||||||
/// If the origin is Signed, then funds of signer are reserved according to the formula:
|
/// Any deposit is freed for the asset class owner.
|
||||||
/// `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into
|
|
||||||
/// account any already reserved funds.
|
|
||||||
///
|
///
|
||||||
/// - `class`: The identifier of the asset class whose instance's metadata to set.
|
/// - `class`: The identifier of the asset class whose instance's metadata to clear.
|
||||||
/// - `instance`: The identifier of the asset instance whose metadata to set.
|
/// - `maybe_instance`: The identifier of the asset instance whose metadata to clear.
|
||||||
/// - `key`: The key of the attribute.
|
/// - `key`: The key of the attribute.
|
||||||
/// - `value`: The value to which to set the attribute.
|
|
||||||
///
|
///
|
||||||
/// Emits `AttributeSet`.
|
/// Emits `AttributeCleared`.
|
||||||
///
|
///
|
||||||
/// Weight: `O(1)`
|
/// Weight: `O(1)`
|
||||||
#[pallet::weight(T::WeightInfo::clear_attribute())]
|
#[pallet::weight(T::WeightInfo::clear_attribute())]
|
||||||
|
|||||||
Reference in New Issue
Block a user