Skip to content

Commit

Permalink
Improve docs at pallet-bioatuh
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Nov 8, 2023
1 parent 4582ec6 commit e985456
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions crates/pallet-bioauth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,16 +408,11 @@ pub mod pallet {
}
}

/// Dispatchable functions allow users to interact with the pallet and invoke state changes.
/// These functions materialize as "extrinsics", which are often compared to transactions.
/// Dispatchable functions must be annotated with a weight and must return
/// a [`frame_support::dispatch::DispatchResult`] or
/// or [`frame_support::dispatch::DispatchResultWithPostInfo`].
///
/// Weight: `O(M + N) where M is the number of authentications and N is the number of nonces`
/// Cost incurred from decoding vec of length M or N. Charged as maximum
#[pallet::call]
impl<T: Config> Pallet<T> {
/// ### Complexity
/// `O(M + N) where M is the number of authentications and N is the number of nonces`
/// Cost incurred from decoding vec of length M or N. Charged as maximum.
#[pallet::call_index(0)]
#[pallet::weight(T::WeightInfo::authenticate(
<ActiveAuthentications<T>>::get().len().try_into()
Expand Down

0 comments on commit e985456

Please sign in to comment.