mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 23:47:56 +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:
@@ -178,7 +178,7 @@ impl<T, S, V, M> Convert<Multiplier, Multiplier> for TargetedFeeAdjustment<T, S,
|
||||
// the computed ratio is only among the normal class.
|
||||
let normal_max_weight = weights.get(DispatchClass::Normal).max_total
|
||||
.unwrap_or_else(|| weights.max_block);
|
||||
let current_block_weight = <frame_system::Module<T>>::block_weight();
|
||||
let current_block_weight = <frame_system::Pallet<T>>::block_weight();
|
||||
let normal_block_weight = *current_block_weight
|
||||
.get(DispatchClass::Normal)
|
||||
.min(&normal_max_weight);
|
||||
@@ -303,7 +303,7 @@ decl_module! {
|
||||
target += addition;
|
||||
|
||||
sp_io::TestExternalities::new_empty().execute_with(|| {
|
||||
<frame_system::Module<T>>::set_block_consumed_resources(target, 0);
|
||||
<frame_system::Pallet<T>>::set_block_consumed_resources(target, 0);
|
||||
let next = T::FeeMultiplierUpdate::convert(min_value);
|
||||
assert!(next > min_value, "The minimum bound of the multiplier is too low. When \
|
||||
block saturation is more than target by 1% and multiplier is minimal then \
|
||||
@@ -630,9 +630,9 @@ mod tests {
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: system::{Module, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Module, Storage},
|
||||
System: system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user