Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update & cargo +nightly fmt
  • Loading branch information
Doordashcon committed Nov 13, 2021
commit 54b3914a55700435707fefbb26d85df3fe83df02
4 changes: 2 additions & 2 deletions frame/session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ pub mod pallet {
pub enum Event {
/// New session has happened. Note that the argument is the session_index, not the
/// block number as the type might suggest.
NewSession { session_index: SessionIndex },
NewSession { index: SessionIndex },
}

/// Old name generated by `decl_event`.
Expand Down Expand Up @@ -702,7 +702,7 @@ impl<T: Config> Pallet<T> {
<QueuedChanged<T>>::put(next_changed);

// Record that this happened.
Self::deposit_event(Event::NewSession { session_index: session_index });
Self::deposit_event(Event::NewSession { index: session_index });

// Tell everyone about the new session keys.
T::SessionHandler::on_new_session::<T::Keys>(changed, &session_keys, &queued_amalgamated);
Expand Down