Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EELS Update EIP-7702: Update EXTCODE* opcode behavior #1094

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/ethereum/prague/vm/eoa_delegation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

SET_CODE_TX_MAGIC = b"\x05"
EOA_DELEGATION_MARKER = b"\xEF\x01\x00"
EOA_DELEGATION_SENTINEL = b"\xEF\x01"
EOA_DELEGATION_MARKER_LENGTH = len(EOA_DELEGATION_MARKER)
EOA_DELEGATED_CODE_LENGTH = 23
PER_EMPTY_ACCOUNT_COST = 25000
Expand Down
7 changes: 0 additions & 7 deletions src/ethereum/prague/vm/instructions/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from ...fork_types import EMPTY_ACCOUNT
from ...state import get_account
from ...utils.address import to_address
from ...vm.eoa_delegation import EOA_DELEGATION_SENTINEL, is_valid_delegation
from ...vm.memory import buffer_read, memory_write
from .. import Evm
from ..exceptions import OutOfBoundsRead
Expand Down Expand Up @@ -353,8 +352,6 @@ def extcodesize(evm: Evm) -> None:

# OPERATION
code = get_account(evm.env.state, address).code
if is_valid_delegation(code):
code = EOA_DELEGATION_SENTINEL

codesize = U256(len(code))
push(evm.stack, codesize)
Expand Down Expand Up @@ -397,8 +394,6 @@ def extcodecopy(evm: Evm) -> None:
# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
code = get_account(evm.env.state, address).code
if is_valid_delegation(code):
code = EOA_DELEGATION_SENTINEL

value = buffer_read(code, code_start_index, size)
memory_write(evm.memory, memory_start_index, value)
Expand Down Expand Up @@ -490,8 +485,6 @@ def extcodehash(evm: Evm) -> None:
codehash = U256(0)
else:
code = account.code
if is_valid_delegation(code):
code = EOA_DELEGATION_SENTINEL
codehash = U256.from_be_bytes(keccak256(code))

push(evm.stack, codehash)
Expand Down
Loading