mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +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
@@ -13,7 +13,7 @@ and includes the recent best block number of the local validators chain as well
|
||||
as the `NetworkState`.
|
||||
It is submitted as an Unsigned Transaction via off-chain workers.
|
||||
|
||||
- [`im_online::Trait`](https://docs.rs/pallet-im-online/latest/pallet_im_online/trait.Trait.html)
|
||||
- [`im_online::Config`](https://docs.rs/pallet-im-online/latest/pallet_im_online/trait.Config.html)
|
||||
- [`Call`](https://docs.rs/pallet-im-online/latest/pallet_im_online/enum.Call.html)
|
||||
- [`Module`](https://docs.rs/pallet-im-online/latest/pallet_im_online/struct.Module.html)
|
||||
|
||||
@@ -30,10 +30,10 @@ use frame_support::{decl_module, dispatch};
|
||||
use frame_system::ensure_signed;
|
||||
use pallet_im_online::{self as im_online};
|
||||
|
||||
pub trait Trait: im_online::Trait {}
|
||||
pub trait Config: im_online::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 is_online(origin, authority_index: u32) -> dispatch::DispatchResult {
|
||||
let _sender = ensure_signed(origin)?;
|
||||
|
||||
Reference in New Issue
Block a user