--- a/pallets/common/src/dispatch.rs +++ b/pallets/common/src/dispatch.rs @@ -36,13 +36,15 @@ }, error, })?; - handle.check_is_internal().map_err(|error| DispatchErrorWithPostInfo { - post_info: PostDispatchInfo { - actual_weight: Some(dispatch_weight::()), - pays_fee: Pays::Yes, - }, - error, - })?; + handle + .check_is_internal() + .map_err(|error| DispatchErrorWithPostInfo { + post_info: PostDispatchInfo { + actual_weight: Some(dispatch_weight::()), + pays_fee: Pays::Yes, + }, + error, + })?; let dispatched = T::CollectionDispatch::dispatch(handle); let mut result = call(dispatched.as_dyn()); match &mut result {