mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 05:37:58 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user