From 54a0f5b2041c8c976c0c626e5162b9d5deab136e Mon Sep 17 00:00:00 2001 From: Drew Stone Date: Tue, 16 Oct 2018 21:58:19 +0300 Subject: [PATCH] Drew.commentfix: There is no next_era function in staking. (#915) * Change next_era to new_era in comments so there is no confusion * Change next_era to new_era in comments so there is no confusion --- substrate/srml/session/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/srml/session/src/lib.rs b/substrate/srml/session/src/lib.rs index 9893d33860..3648db2ee3 100644 --- a/substrate/srml/session/src/lib.rs +++ b/substrate/srml/session/src/lib.rs @@ -153,7 +153,7 @@ impl Module { /// Set the current set of validators. /// - /// Called by `staking::next_era()` only. `next_session` should be called after this in order to + /// Called by `staking::new_era()` only. `next_session` should be called after this in order to /// update the session keys to the next validator set. pub fn set_validators(new: &[T::AccountId]) { >::put(&new.to_vec()); // TODO: optimise.