Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply review suggestions.
  • Loading branch information
shaunxw committed Jun 25, 2020
commit de80f6500b8e353d5f72fd6f0c5f5e0014da1d53
2 changes: 1 addition & 1 deletion frame/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ decl_module! {

/// Add a registrar to the system.
///
/// The dispatch origin for this call must be `RegistrarOrigin`.
/// The dispatch origin for this call must be `T::RegistrarOrigin`.
///
/// - `account`: the account of the registrar.
///
Expand Down
12 changes: 6 additions & 6 deletions frame/membership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ decl_module! {

/// Add a member `who` to the set.
///
/// May only be called from `AddOrigin`.
/// May only be called from `T::AddOrigin`.
#[weight = 50_000_000]
pub fn add_member(origin, who: T::AccountId) {
T::AddOrigin::ensure_origin(origin)?;
Expand All @@ -134,7 +134,7 @@ decl_module! {

/// Remove a member `who` from the set.
///
/// May only be called from `RemoveOrigin`.
/// May only be called from `T::RemoveOrigin`.
#[weight = 50_000_000]
pub fn remove_member(origin, who: T::AccountId) {
T::RemoveOrigin::ensure_origin(origin)?;
Expand All @@ -152,7 +152,7 @@ decl_module! {

/// Swap out one member `remove` for another `add`.
///
/// May only be called from `SwapOrigin`.
/// May only be called from `T::SwapOrigin`.
///
/// Prime membership is *not* passed from `remove` to `add`, if extant.
#[weight = 50_000_000]
Expand Down Expand Up @@ -181,7 +181,7 @@ decl_module! {
/// Change the membership to a new set, disregarding the existing membership. Be nice and
/// pass `members` pre-sorted.
///
/// May only be called from `ResetOrigin`.
/// May only be called from `T::ResetOrigin`.
#[weight = 50_000_000]
pub fn reset_members(origin, members: Vec<T::AccountId>) {
T::ResetOrigin::ensure_origin(origin)?;
Expand Down Expand Up @@ -232,7 +232,7 @@ decl_module! {

/// Set the prime member. Must be a current member.
///
/// May only be called from `PrimeOrigin`.
/// May only be called from `T::PrimeOrigin`.
#[weight = 50_000_000]
pub fn set_prime(origin, who: T::AccountId) {
T::PrimeOrigin::ensure_origin(origin)?;
Expand All @@ -243,7 +243,7 @@ decl_module! {

/// Remove the prime member if it exists.
///
/// May only be called from `PrimeOrigin`.
/// May only be called from `T::PrimeOrigin`.
#[weight = 50_000_000]
pub fn clear_prime(origin) {
T::PrimeOrigin::ensure_origin(origin)?;
Expand Down
4 changes: 2 additions & 2 deletions frame/scored-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ decl_module! {

/// Kick a member `who` from the set.
///
/// May only be called from `KickOrigin`.
/// May only be called from `T::KickOrigin`.
///
/// The `index` parameter of this function must be set to
/// the index of `dest` in the `Pool`.
Expand All @@ -331,7 +331,7 @@ decl_module! {

/// Score a member `who` with `score`.
///
/// May only be called from `ScoreOrigin`.
/// May only be called from `T::ScoreOrigin`.
///
/// The `index` parameter of this function must be set to
/// the index of the `dest` in the `Pool`.
Expand Down
4 changes: 2 additions & 2 deletions frame/treasury/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ decl_module! {

/// Reject a proposed spend. The original deposit will be slashed.
///
/// May only be called from `RejectOrigin`.
/// May only be called from `T::RejectOrigin`.
///
/// # <weight>
/// - Complexity: O(1)
Expand All @@ -377,7 +377,7 @@ decl_module! {
/// Approve a proposal. At a later time, the proposal will be allocated to the beneficiary
/// and the original deposit will be returned.
///
/// May only be called from `ApproveOrigin`.
/// May only be called from `T::ApproveOrigin`.
///
/// # <weight>
/// - Complexity: O(1).
Expand Down