From 88ac3cb2a8e9e31c6f23bf70b06ef46937630054 Mon Sep 17 00:00:00 2001 From: "Demi M. Obenour" Date: Sun, 17 May 2020 13:46:15 -0400 Subject: [PATCH] Use the #[module] macro This fixes a compile error --- src/frame/staking.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]`.