subspace_runtime_primitives::utility

Function nested_utility_call_iter

Source
pub fn nested_utility_call_iter<Runtime>(
    call: &RuntimeCallFor<Runtime>,
) -> impl Iterator<Item = &RuntimeCallFor<Runtime>>
where Runtime: Config + Config, RuntimeCallFor<Runtime>: MaybeIntoUtilityCall<Runtime>, for<'block> &'block RuntimeCallFor<Runtime>: From<&'block <Runtime as Config>::RuntimeCall>,
Expand description

Returns an interator over call, and any calls nested within it using pallet-utility.

The iterator yields all calls in depth-first order, including calls which contain other calls. pallet_utility::Call::__Ignore calls are yielded themsevles, but their contents are not.