diff --git a/polkadot/runtime/src/runtime/staking.rs b/polkadot/runtime/src/runtime/staking.rs index 0bb4372c6d..1b69698265 100644 --- a/polkadot/runtime/src/runtime/staking.rs +++ b/polkadot/runtime/src/runtime/staking.rs @@ -42,6 +42,7 @@ const SESSIONS_PER_ERA: &[u8] = b"sta:spe"; const NEXT_SESSIONS_PER_ERA: &[u8] = b"sta:nse"; const CURRENT_ERA: &[u8] = b"sta:era"; const LAST_ERA_LENGTH_CHANGE: &[u8] = b"sta:lec"; +const TOTAL_STAKE: &[u8] = b"sta:tot"; const BALANCE_OF: &[u8] = b"sta:bal:"; const BONDAGE_OF: &[u8] = b"sta:bon:"; @@ -235,6 +236,7 @@ mod tests { twox_128(SESSIONS_PER_ERA).to_vec() => vec![].and(&2u64), twox_128(VALIDATOR_COUNT).to_vec() => vec![].and(&2u32), twox_128(BONDING_DURATION).to_vec() => vec![].and(&3u64), + twox_128(TOTAL_STAKE).to_vec() => vec![].and(&100u64), twox_128(&one.to_keyed_vec(BALANCE_OF)).to_vec() => vec![].and(&10u64), twox_128(&two.to_keyed_vec(BALANCE_OF)).to_vec() => vec![].and(&20u64), twox_128(&three.to_keyed_vec(BALANCE_OF)).to_vec() => vec![].and(&30u64),