Skip to content

Test MCOPY Memory Expansion

Documentation for tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py@206854b5.

Generate fixtures for these test cases for Prague with:

fill -v tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py --fork Prague
Tests EIP-5656: MCOPY - Memory copying instruction

Test copy operations of EIP-5656: MCOPY - Memory copying instruction that produce a memory expansion, and potentially an out-of-gas error.

Test Functions Overview

Name Type Cases (Prague) Description
test_mcopy_memory_expansion state_test 40 Perform MCOPY operations that expand the memory, and verify the gas it costs to do so.
test_mcopy_huge_memory_expansion state_test 18 Perform MCOPY operations that expand the memory by huge amounts, and verify that it correctly