Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
cargo fmt
  • Loading branch information
KiChjang committed Sep 5, 2022
commit ab8128818cb26be3e787c97e1f124ab50ef9b259
5 changes: 4 additions & 1 deletion frame/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ impl<T: Config> Pallet<T> {

if let Some((call, call_len)) = maybe_approved_call {
// verify weight
ensure!(call.get_dispatch_info().weight.all_lte(max_weight), Error::<T>::MaxWeightTooLow);
ensure!(
call.get_dispatch_info().weight.all_lte(max_weight),
Error::<T>::MaxWeightTooLow
);

// Clean up storage before executing call to avoid an possibility of reentrancy
// attack.
Expand Down
3 changes: 2 additions & 1 deletion frame/system/src/extensions/check_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ where

// Check if we don't exceed per-class allowance
match limit_per_class.max_total {
Some(max) if per_class.any_gt(max) => return Err(InvalidTransaction::ExhaustsResources.into()),
Some(max) if per_class.any_gt(max) =>
return Err(InvalidTransaction::ExhaustsResources.into()),
// There is no `max_total` limit (`None`),
// or we are below the limit.
_ => {},
Expand Down