Skip to content

Spec

Documentation for tests/amsterdam/eip7997_deterministic_factory_contract/spec.py@02aafd78.

Define constants for EIP-7997: Deterministic Factory Contract.

Spec dataclass

Constants from EIP-7997.

Source code in tests/amsterdam/eip7997_deterministic_factory_contract/spec.py
22
23
24
25
26
27
28
29
30
31
32
33
@dataclass(frozen=True)
class Spec:
    """Constants from EIP-7997."""

    FACTORY_ADDRESS: int = 0x4E59B44847B379578588920CA78FBF26C0B4956C
    FACTORY_BYTECODE: Bytes = Bytes(
        "7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0"
        "3601600081602082378035828234f58015156039578182fd"
        "5b8082525050506014600cf3"
    )
    SALT_SIZE: int = 32
    """The factory reads the salt from the first 32 bytes of calldata."""