mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Renames of Trait to Config in README.md, weight templates and few minor ones (#7636)
* manual rename * renamse in README.md * fix template
This commit is contained in:
committed by
GitHub
parent
35efc8e4b0
commit
15b0dece54
@@ -20,7 +20,7 @@ time. If an entity is currently a member, this results in removal
|
||||
from the `Pool` and `Members`; the entity is immediately replaced
|
||||
by the next highest scoring candidate in the pool, if available.
|
||||
|
||||
- [`scored_pool::Trait`](https://docs.rs/pallet-scored-pool/latest/pallet_scored_pool/trait.Trait.html)
|
||||
- [`scored_pool::Config`](https://docs.rs/pallet-scored-pool/latest/pallet_scored_pool/trait.Config.html)
|
||||
- [`Call`](https://docs.rs/pallet-scored-pool/latest/pallet_scored_pool/enum.Call.html)
|
||||
- [`Module`](https://docs.rs/pallet-scored-pool/latest/pallet_scored_pool/struct.Module.html)
|
||||
|
||||
@@ -41,10 +41,10 @@ use frame_support::{decl_module, dispatch};
|
||||
use frame_system::ensure_signed;
|
||||
use pallet_scored_pool::{self as scored_pool};
|
||||
|
||||
pub trait Trait: scored_pool::Trait {}
|
||||
pub trait Config: scored_pool::Config {}
|
||||
|
||||
decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
|
||||
pub struct Module<T: Config> for enum Call where origin: T::Origin {
|
||||
#[weight = 0]
|
||||
pub fn candidate(origin) -> dispatch::DispatchResult {
|
||||
let who = ensure_signed(origin)?;
|
||||
|
||||
Reference in New Issue
Block a user