mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
cleanup <weight></weight> from docs comments (#13350)
* cleanup <weight></weight> from docs comments * Changes to address review commnets * Fix CI cargo test --docs --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -129,12 +129,8 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin for this call must be _Signed_.
|
||||
///
|
||||
/// # <weight>
|
||||
/// ## Complexity
|
||||
/// - O(1).
|
||||
/// - At most one balance operation.
|
||||
/// - One storage read/write.
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(50_000_000)]
|
||||
pub fn set_name(origin: OriginFor<T>, name: Vec<u8>) -> DispatchResult {
|
||||
@@ -162,12 +158,8 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin for this call must be _Signed_.
|
||||
///
|
||||
/// # <weight>
|
||||
/// ## Complexity
|
||||
/// - O(1).
|
||||
/// - One balance operation.
|
||||
/// - One storage read/write.
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub fn clear_name(origin: OriginFor<T>) -> DispatchResult {
|
||||
@@ -189,12 +181,8 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin for this call must match `T::ForceOrigin`.
|
||||
///
|
||||
/// # <weight>
|
||||
/// ## Complexity
|
||||
/// - O(1).
|
||||
/// - One unbalanced handler (probably a balance transfer)
|
||||
/// - One storage read/write.
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::call_index(2)]
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub fn kill_name(origin: OriginFor<T>, target: AccountIdLookupOf<T>) -> DispatchResult {
|
||||
@@ -217,12 +205,8 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin for this call must match `T::ForceOrigin`.
|
||||
///
|
||||
/// # <weight>
|
||||
/// ## Complexity
|
||||
/// - O(1).
|
||||
/// - At most one balance operation.
|
||||
/// - One storage read/write.
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::call_index(3)]
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub fn force_name(
|
||||
|
||||
Reference in New Issue
Block a user