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:
Vivek Pandya
2023-02-14 19:39:36 +05:30
committed by GitHub
parent 56b90e199d
commit 35e8e137c5
22 changed files with 202 additions and 635 deletions
+4 -20
View File
@@ -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(