Skip to main content

validate_set_code_transaction_context

Function validate_set_code_transaction_context 

Source
pub fn validate_set_code_transaction_context<'a, A, S>(
    transaction: UnvalidatedSetCodeTransaction<'a>,
    context: SetCodeTransactionValidationContext,
    authorities: &A,
    accounts: &S,
) -> Result<ValidSetCodeTransaction<'a>, SetCodeTransactionValidityError>
Expand description

Validates EIP-7702 context rules for a decoded set-code transaction.

This is the non-cryptographic validity gate. It expects authorities to be produced by validating every authorization tuple signature through the verify crate. It does not recover signatures itself and does not execute the transaction. Invalid authorization tuples are counted as skipped instead of rejecting the whole transaction, matching EIP-7702 tuple processing.