Test Mcopy Contexts¶
Documentation for tests/cancun/eip5656_mcopy/test_mcopy_contexts.py
.
Generate fixtures for these test cases with:
fill -v tests/cancun/eip5656_mcopy/test_mcopy_contexts.py
Tests EIP-5656: MCOPY - Memory copying instruction
Test memory copy under different call contexts EIP-5656: MCOPY - Memory copying instruction
test_no_memory_corruption_on_upper_call_stack_levels(state_test, pre, post, tx)
¶
Perform a subcall with any of the following opcodes, which uses MCOPY during its execution,
and verify that the caller's memory is unaffected:
- CALL
- CALLCODE
- DELEGATECALL
- STATICCALL
- CREATE
- CREATE2
Source code in tests/cancun/eip5656_mcopy/test_mcopy_contexts.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
|