Skip to content

Commit 89b6cea

Browse files
authored
new(tests): EOF - EIP-3540: execution semantics changes (#571)
* new(tests): EIP-3540: execution semantics changes Test the exectuion semantics changes around EXTCODE* and DELEGATECALL Signed-off-by: Danno Ferrin <[email protected]> * formatting Signed-off-by: Danno Ferrin <[email protected]> * review requested changes Signed-off-by: Danno Ferrin <[email protected]> --------- Signed-off-by: Danno Ferrin <[email protected]>
1 parent b93e4fb commit 89b6cea

File tree

4 files changed

+658
-9
lines changed

4 files changed

+658
-9
lines changed

src/ethereum_test_tools/vm/opcode.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5477,7 +5477,7 @@ class Opcodes(Opcode, Enum):
54775477
Source: [evm.codes/#FA](https://www.evm.codes/#FA)
54785478
"""
54795479

5480-
EXTSTATICCALL = Opcode(0xFB, popped_stack_items=4, pushed_stack_items=1)
5480+
EXTSTATICCALL = Opcode(0xFB, popped_stack_items=3, pushed_stack_items=1)
54815481
"""
54825482
EXTSTATICCALL(target_address, input_offset, input_size) = address
54835483
----
@@ -5511,28 +5511,26 @@ class Opcodes(Opcode, Enum):
55115511
Source: [EIP-7069](https://eips.ethereum.org/EIPS/eip-7069)
55125512
"""
55135513

5514-
CREATE4 = Opcode(0xF7, popped_stack_items=5, pushed_stack_items=1)
5514+
RETURNDATALOAD = Opcode(0xF7, popped_stack_items=1)
55155515
"""
5516-
!!! Note: This opcode is under development
5517-
5518-
CREATE4()
5516+
RETURNDATALOAD(offset)
55195517
----
55205518
55215519
Description
55225520
----
5521+
Copy 32 bytes from returndata at offset onto the stack
55235522
55245523
Inputs
55255524
----
5526-
5527-
Outputs
5528-
----
5525+
- offset: byte offset in the return data from the last executed sub context to copy
55295526
55305527
Fork
55315528
----
5529+
EOF
55325530
55335531
Gas
55345532
----
5535-
5533+
3
55365534
"""
55375535

55385536
REVERT = Opcode(0xFD, popped_stack_items=2)

0 commit comments

Comments
 (0)