test_push0_contract_during_call_contexts()¶
Documentation for tests/shanghai/eip3855_push0/test_push0.py::TestPush0CallContext::test_push0_contract_during_call_contexts@88e9fb8f.
Generate fixtures for these test cases for Osaka with:
fill -v tests/shanghai/eip3855_push0/test_push0.py::TestPush0CallContext::test_push0_contract_during_call_contexts --fork Osaka
Test the PUSH0 operation in various contract call contexts.
Test PUSH0 in the following contract call contexts:
- CALL,
- CALLCODE,
- DELEGATECALL,
- STATICCALL.
Source code in tests/shanghai/eip3855_push0/test_push0.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
test_push0_contract_during_call_contexts(state_test, env, pre, post, sender, push0_contract_caller)
¶
Test PUSH0 during various call contexts.
Source code in tests/shanghai/eip3855_push0/test_push0.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
| Test ID (Abbreviated) | call_opcode |
|---|---|
| ...fork_Shanghai-state_test-call | CALL |
| ...fork_Shanghai-state_test-callcode | CALLCODE |
| ...fork_Shanghai-state_test-delegatecall | DELEGATECALL |
| ...fork_Shanghai-state_test-staticcall | STATICCALL |
| ...fork_Shanghai-blockchain_test_from_state_test-call | CALL |
| ...fork_Shanghai-blockchain_test_from_state_test-callcode | CALLCODE |
| ...fork_Shanghai-blockchain_test_from_state_test-delegatecall | DELEGATECALL |
| ...fork_Shanghai-blockchain_test_from_state_test-staticcall | STATICCALL |
| ...fork_Cancun-state_test-call | CALL |
| ...fork_Cancun-state_test-callcode | CALLCODE |
| ...fork_Cancun-state_test-delegatecall | DELEGATECALL |
| ...fork_Cancun-state_test-staticcall | STATICCALL |
| ...fork_Cancun-blockchain_test_from_state_test-call | CALL |
| ...fork_Cancun-blockchain_test_from_state_test-callcode | CALLCODE |
| ...fork_Cancun-blockchain_test_from_state_test-delegatecall | DELEGATECALL |
| ...fork_Cancun-blockchain_test_from_state_test-staticcall | STATICCALL |
| ...fork_Prague-state_test-call | CALL |
| ...fork_Prague-state_test-callcode | CALLCODE |
| ...fork_Prague-state_test-delegatecall | DELEGATECALL |
| ...fork_Prague-state_test-staticcall | STATICCALL |
| ...fork_Prague-blockchain_test_from_state_test-call | CALL |
| ...fork_Prague-blockchain_test_from_state_test-callcode | CALLCODE |
| ...fork_Prague-blockchain_test_from_state_test-delegatecall | DELEGATECALL |
| ...fork_Prague-blockchain_test_from_state_test-staticcall | STATICCALL |
| ...fork_Osaka-state_test-call | CALL |
| ...fork_Osaka-state_test-callcode | CALLCODE |
| ...fork_Osaka-state_test-delegatecall | DELEGATECALL |
| ...fork_Osaka-state_test-staticcall | STATICCALL |
| ...fork_Osaka-blockchain_test_from_state_test-call | CALL |
| ...fork_Osaka-blockchain_test_from_state_test-callcode | CALLCODE |
| ...fork_Osaka-blockchain_test_from_state_test-delegatecall | DELEGATECALL |
| ...fork_Osaka-blockchain_test_from_state_test-staticcall | STATICCALL |