referrerpolicy=no-referrer-when-downgrade

worst_case_authorization_weight

Function worst_case_authorization_weight 

Source
pub fn worst_case_authorization_weight<T: Config>(n: u32) -> Weight
Expand description

Pre-dispatch worst-case weight for processing n EIP-7702 authorizations.

Must be used as the reservation in #[pallet::weight(...)] and as the baseline against which the post-dispatch refund is computed, so that both expressions agree and the refund accounting balances out to the actual cost.

Takes a component-wise max of the all-new and all-existing aggregations: on at least one asset-hub runtime process_existing_account_authorization has a larger per-auth proof_size than process_new_account_authorization (the populated trie node carries more witness data), so neither dimension uniformly dominates.