Skip to content

Test STATICCALL

Documentation for tests/byzantium/eip214_staticcall/test_staticcall.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/byzantium/eip214_staticcall/test_staticcall.py --fork Amsterdam

Tests for EIP-214 STATICCALL opcode behavior.

STATICCALL creates a read-only call context where state-modifying operations are forbidden. This includes CALL with non-zero value to any address.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_staticcall_call_to_precompile state_test 36 Test CALL to precompile inside STATICCALL with zero and non-zero value.
test_staticcall_call_to_precompile_from_contract_init state_test 72 Test STATICCALL behavior during contract initialization (CREATE).
test_staticcall_nested_call_to_precompile state_test 36 Test STATICCALL behavior with an extra call depth layer.
test_staticcall_reentrant_call_to_precompile state_test 36 Test CALL to precompile inside STATICCALL with zero and non-zero value.