Use the #[module] macro

This fixes a compile error
This commit is contained in:
Demi M. Obenour
2020-05-17 13:46:15 -04:00
parent 716dd13313
commit 88ac3cb2a8
+2 -3
View File
@@ -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<AccountId, Balance: HasCompact> {
pub claimed_rewards: Vec<EraIndex>,
}
const MODULE: &str = "Staking";
/// Number of eras to keep in history.
///
/// Information is kept for eras in `[current_era - history_depth; current_era]`.