mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 03:01:07 +00:00
Use the #[module] macro
This fixes a compile error
This commit is contained in:
@@ -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]`.
|
||||
|
||||
Reference in New Issue
Block a user