Skip to content

Test CALLF Execution

Documentation for tests/osaka/eip7692_eof_v1/eip4750_functions/test_callf_execution.py@206854b5.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4750_functions/test_callf_execution.py --fork Osaka

EOF CALLF execution tests

Test Functions Overview

Name Type Cases (Osaka) Description
test_callf_factorial eof_state_test 0 Test factorial implementation with recursive CALLF instructions
test_callf_fibonacci eof_state_test 0 Test fibonacci sequence implementation with recursive CALLF instructions
test_callf eof_state_test 0 Test basic usage of CALLF and RETF instructions
test_callf_operand_stack_size_max eof_state_test 0 Test operand stack reaching 1024 items
test_callf_operand_stack_overflow eof_state_test 0 Test stack overflowing 1024 items in called function
test_callf_sneaky_stack_overflow state_test 2 CALLF where a normal execution would not overflow, but EIP-4750 CALLF rule #3 triggers.
test_callf_max_stack state_test 3 CALLF where a normal execution would not overflow, but EIP-4750 CALLF rule #4 triggers.