Skip to content

Commit 83d5917

Browse files
authored
new(tests): add one more CALLF execution test (ethereum#1122)
This case is ported from a valid EOF validation test in ethereum/tests.
1 parent 8fe375e commit 83d5917

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

osaka/eip7692_eof_v1/eip4750_functions/test_callf_execution.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,39 @@ def test_callf_fibonacci(eof_state_test: EOFStateTestFiller, n, result):
158158
),
159159
],
160160
),
161+
Container(
162+
name="multiple_sections_of_different_types", # EOF1V4750_0005
163+
sections=[
164+
Section.Code(
165+
Op.PUSH0
166+
+ Op.CALLF[1]
167+
+ Op.CALLF[2]
168+
+ Op.PUSH0
169+
+ Op.CALLF[3]
170+
+ Op.SSTORE
171+
+ Op.STOP,
172+
max_stack_height=4,
173+
),
174+
Section.Code(
175+
Op.POP + Op.RETF,
176+
code_inputs=1,
177+
code_outputs=0,
178+
max_stack_height=1,
179+
),
180+
Section.Code(
181+
Op.PUSH2[value_code_worked] + Op.RETF,
182+
code_inputs=0,
183+
code_outputs=1,
184+
max_stack_height=1,
185+
),
186+
Section.Code(
187+
Op.DUP2 + Op.PUSH2[slot_code_worked] + Op.RETF,
188+
code_inputs=2,
189+
code_outputs=4,
190+
max_stack_height=4,
191+
),
192+
],
193+
),
161194
),
162195
ids=lambda x: x.name,
163196
)

0 commit comments

Comments
 (0)