Skip to main content

apply_auth_list

Function apply_auth_list 

Source
pub fn apply_auth_list<JOURNAL: JournalTr, ERROR: From<InvalidTransaction> + From<<JOURNAL::Database as Database>::Error>>(
    chain_id: u64,
    refund_per_auth: u64,
    auth_list: impl Iterator<Item = impl AuthorizationTr>,
    journal: &mut JOURNAL,
) -> Result<u64, ERROR>
Expand description

Apply EIP-7702 style auth list and return number gas refund on already created accounts.

It is more granular function from apply_eip7702_auth_list function as it takes only the list, journal and chain id.

The refund_per_auth parameter specifies the gas refund per existing account authorization. By default this is PER_EMPTY_ACCOUNT_COST - PER_AUTH_BASE_COST (25000 - 12500 = 12500), but can be configured via GasParams::tx_eip7702_auth_refund.