tuple to struct event variants (#10257)

* AFNPEV recovery

* AFNPEV session

* cargo +nightly fmt && cargo fmt

* removed redundant comments

* update

* update & cargo +nightly fmt

* update & cargo +nightly fmt

* update recovery/src/lib.rs

* update session/src/lib.rs
This commit is contained in:
Doordashcon authored and GitHub committed 2021-11-20 08:00:43 +00:00
1 parent 25239c8642
commit 09d351ddad
2 files changed
+38 -22

No files matched your search

+3 -3
View File
@@ -532,9 +532,9 @@ pub mod pallet {
#[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event {
/// New session has happened. Note that the argument is the \[session_index\], not the
/// New session has happened. Note that the argument is the session index, not the
/// block number as the type might suggest.
NewSession(SessionIndex),
NewSession { session_index: SessionIndex },
}
/// Old name generated by `decl_event`.
@@ -703,7 +703,7 @@ impl<T: Config> Pallet<T> {
<QueuedChanged<T>>::put(next_changed);
// Record that this happened.
Self::deposit_event(Event::NewSession(session_index));
Self::deposit_event(Event::NewSession { session_index });
// Tell everyone about the new session keys.
T::SessionHandler::on_new_session::<T::Keys>(changed, &session_keys, &queued_amalgamated);