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 Pandyaandparity-processbot authored and GitHub committed 2023-02-14 14:09:36 +00:00
1 parent 56b90e199d
commit 35e8e137c5
22 files changed
+202 -635

No files matched your search

+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(