Skip to content

Commit 33d50c9

Browse files
authored
1 parent 0c56b70 commit 33d50c9

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/ethereum/prague/vm/eoa_delegation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
SET_CODE_TX_MAGIC = b"\x05"
2323
EOA_DELEGATION_MARKER = b"\xEF\x01\x00"
24-
EOA_DELEGATION_SENTINEL = b"\xEF\x01"
2524
EOA_DELEGATION_MARKER_LENGTH = len(EOA_DELEGATION_MARKER)
2625
EOA_DELEGATED_CODE_LENGTH = 23
2726
PER_EMPTY_ACCOUNT_COST = 25000

src/ethereum/prague/vm/instructions/environment.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from ...fork_types import EMPTY_ACCOUNT
2222
from ...state import get_account
2323
from ...utils.address import to_address
24-
from ...vm.eoa_delegation import EOA_DELEGATION_SENTINEL, is_valid_delegation
2524
from ...vm.memory import buffer_read, memory_write
2625
from .. import Evm
2726
from ..exceptions import OutOfBoundsRead
@@ -353,8 +352,6 @@ def extcodesize(evm: Evm) -> None:
353352

354353
# OPERATION
355354
code = get_account(evm.env.state, address).code
356-
if is_valid_delegation(code):
357-
code = EOA_DELEGATION_SENTINEL
358355

359356
codesize = U256(len(code))
360357
push(evm.stack, codesize)
@@ -397,8 +394,6 @@ def extcodecopy(evm: Evm) -> None:
397394
# OPERATION
398395
evm.memory += b"\x00" * extend_memory.expand_by
399396
code = get_account(evm.env.state, address).code
400-
if is_valid_delegation(code):
401-
code = EOA_DELEGATION_SENTINEL
402397

403398
value = buffer_read(code, code_start_index, size)
404399
memory_write(evm.memory, memory_start_index, value)
@@ -490,8 +485,6 @@ def extcodehash(evm: Evm) -> None:
490485
codehash = U256(0)
491486
else:
492487
code = account.code
493-
if is_valid_delegation(code):
494-
code = EOA_DELEGATION_SENTINEL
495488
codehash = U256.from_be_bytes(keccak256(code))
496489

497490
push(evm.stack, codehash)

0 commit comments

Comments
 (0)