pub fn process_authorizations<T: Config>(
authorization_list: &[AuthorizationListEntry],
origin: &T::AccountId,
exec_config: &ExecConfig<T>,
) -> AuthorizationResult<BalanceOf<T>>Expand description
Process a list of EIP-7702 authorization tuples.
For new accounts the ED is drawn from the transaction fee via FeeInfo::withdraw_txfee and
resolved into the account; the delegation deposit itself is charged via
Pallet::charge_deposit.
The pre-dispatch weight reservation comes from worst_case_authorization_weight; the
returned weight_refund is the gap between that baseline and the actual cost incurred.
Note: We process authorizations OUTSIDE the transaction context so delegation changes persist even if the call fails.
Returns the aggregated AuthorizationResult directly — every per-auth failure (spec
validation step or post-validation rollback) is handled by continue inside the loop,
so this function is structurally infallible from the caller’s perspective.