diff --git a/src/frame/staking.rs b/src/frame/staking.rs index 8b04606582..80ec46db18 100644 --- a/src/frame/staking.rs +++ b/src/frame/staking.rs @@ -16,7 +16,7 @@ //! Implements support for the frame_staking module. -use super::system::System; +use super::system::{System, SystemEventsDecoder as _}; use codec::{ Decode, Encode, @@ -109,6 +109,7 @@ impl Default for ValidatorPrefs { } /// The subset of the `frame::Trait` that a client must implement. +#[module] pub trait Staking: System {} /// Just a Balance/BlockNumber tuple to encode when a chunk of funds will be unlocked. @@ -143,8 +144,6 @@ pub struct StakingLedger { pub claimed_rewards: Vec, } -const MODULE: &str = "Staking"; - /// Number of eras to keep in history. /// /// Information is kept for eras in `[current_era - history_depth; current_era]`.