Skip to content

state: EIP-3607 sender check exempts delegation designations before Prague #1825

Open

Description

@chfast

validate_transaction() in test/state/state.cpp rejects a sender with code (EIP-3607) unless is_code_delegated() of the code, at every revision. The exemption for delegation designations comes from EIP-7702 and applies only from Prague; before it, any code makes the sender invalid.

So before Prague a transaction from an account with code 0xef0100 || X is accepted instead of failing with SENDER_NOT_EOA. This matters only for synthetic states, e.g. in fuzzing or state tests: no code starting with 0xEF existed before London (EIP-3541), so a valid pre-Prague state has no such account. execution-specs rejects such a sender before Prague.

Fix: rev >= EVMC_PRAGUE && is_code_delegated(...), as validate_state() already does (test/utils/statetest_loader.cpp:532).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions