mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 19:07:57 +00:00
Replace 'Module' with 'Pallet' in construct_runtime macro (#8372)
* Use 'Pallet' struct in construct_runtime. * Fix genesis and metadata macro. * Fix 'Pallet' type alias. * Replace 'Module' with 'Pallet' for all construct_runtime use cases. * Replace more deprecated 'Module' struct. * Bring back AllModules and AllPalletsWithSystem type, but deprecate them. * Replace deprecated 'Module' struct from merge master. * Minor fix. * Fix UI tests. * Revert UI override in derive_no_bound. * Fix more deprecated 'Module' use from master branch. * Fix more deprecated 'Module' use from master branch.
This commit is contained in:
@@ -1552,7 +1552,7 @@ decl_module! {
|
||||
Err(Error::<T>::InsufficientValue)?
|
||||
}
|
||||
|
||||
system::Module::<T>::inc_consumers(&stash).map_err(|_| Error::<T>::BadState)?;
|
||||
system::Pallet::<T>::inc_consumers(&stash).map_err(|_| Error::<T>::BadState)?;
|
||||
|
||||
// You're auto-bonded forever, here. We might improve this by only bonding when
|
||||
// you actually validate/nominate and remove once you unbond __everything__.
|
||||
@@ -3254,7 +3254,7 @@ impl<T: Config> Module<T> {
|
||||
<Validators<T>>::remove(stash);
|
||||
<Nominators<T>>::remove(stash);
|
||||
|
||||
system::Module::<T>::dec_consumers(stash);
|
||||
system::Pallet::<T>::dec_consumers(stash);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -3516,7 +3516,7 @@ impl<T: Config> pallet_session::SessionManager<T::AccountId> for Module<T> {
|
||||
log!(
|
||||
trace,
|
||||
"[{:?}] planning new_session({})",
|
||||
<frame_system::Module<T>>::block_number(),
|
||||
<frame_system::Pallet<T>>::block_number(),
|
||||
new_index,
|
||||
);
|
||||
CurrentPlannedSession::put(new_index);
|
||||
@@ -3526,7 +3526,7 @@ impl<T: Config> pallet_session::SessionManager<T::AccountId> for Module<T> {
|
||||
log!(
|
||||
trace,
|
||||
"[{:?}] starting start_session({})",
|
||||
<frame_system::Module<T>>::block_number(),
|
||||
<frame_system::Pallet<T>>::block_number(),
|
||||
start_index,
|
||||
);
|
||||
Self::start_session(start_index)
|
||||
@@ -3535,7 +3535,7 @@ impl<T: Config> pallet_session::SessionManager<T::AccountId> for Module<T> {
|
||||
log!(
|
||||
trace,
|
||||
"[{:?}] ending end_session({})",
|
||||
<frame_system::Module<T>>::block_number(),
|
||||
<frame_system::Pallet<T>>::block_number(),
|
||||
end_index,
|
||||
);
|
||||
Self::end_session(end_index)
|
||||
|
||||
Reference in New Issue
Block a user