Skip to content

Commit

Permalink
update to EEST 1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gurukamath committed Sep 25, 2024
1 parent 255d0e9 commit 9d8c80e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/ethereum/prague/vm/instructions/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ def generic_call(
push(evm.stack, U256(1))
return
eof_version = get_eof_version(code)
if eof_version == Eof.LEGACY:
is_init_container = None
if eof_version == EofVersion.LEGACY:
eof = None
else:
metadata = metadata_from_container(
code,
Expand All @@ -335,7 +335,7 @@ def generic_call(
gas=gas,
value=value,
data=call_data,
container=code,
code=code,
current_target=to,
depth=evm.message.depth + 1,
code_address=code_address,
Expand Down Expand Up @@ -898,6 +898,7 @@ def generic_eof_call(
accessed_addresses=evm.accessed_addresses.copy(),
accessed_storage_keys=evm.accessed_storage_keys.copy(),
parent_evm=evm,
authorizations=(),
eof=eof,
)
child_evm = process_message(child_message, evm.env)
Expand Down Expand Up @@ -1117,6 +1118,8 @@ def eof_create(evm: Evm) -> None:
charge_gas(evm, GAS_CREATE + extend_memory.cost + init_code_gas)

# OPERATION
if evm.message.is_static:
raise WriteInStaticContext("EOFCREATE in static mode")
evm.memory += b"\x00" * extend_memory.expand_by

sender_address = evm.message.current_target
Expand Down Expand Up @@ -1173,6 +1176,7 @@ def eof_create(evm: Evm) -> None:
accessed_addresses=evm.accessed_addresses.copy(),
accessed_storage_keys=evm.accessed_storage_keys.copy(),
parent_evm=evm,
authorizations=(),
eof=eof,
)
child_evm = process_create_message(child_message, evm.env)
Expand Down
1 change: 0 additions & 1 deletion src/ethereum/prague/vm/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
set_code,
touch_account,
)
from ..vm import Message
from ..vm.eoa_delegation import set_delegation
from ..vm.gas import GAS_CODE_DEPOSIT, charge_gas
from ..vm.precompiled_contracts.mapping import PRE_COMPILED_CONTRACTS
Expand Down

0 comments on commit 9d8c80e

Please sign in to comment.