Skip to main content

apply_access_list

Function apply_access_list 

Source
pub fn apply_access_list(
    tx: &mut TransactionRequest,
    access_list: &mut AccessList,
    sender: Address,
    exclude: &[Address],
)
Expand description

Filter already-warm and excluded addresses from an access list, then apply it to the transaction request.

Removes entries for:

  • sender — always warm as tx origin per EIP-2929
  • tx.to — always warm as the destination per EIP-2929
  • Any addresses in exclude — caller-excluded addresses

After filtering, sets the access list on tx (skipped if the list is empty).