Skip to content

Test MCOPY Memory Expansion

Documentation for tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py@a86d4327.

Generate fixtures for these test cases for Cancun with:

Cancun only:

fill -v tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py --fork=Cancun --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Cancun:

fill -v tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py --until=Cancun

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 Description
test_mcopy_memory_expansion state_test 160 Perform MCOPY operations that expand the memory, and verify the gas it costs to do so.
test_mcopy_huge_memory_expansion state_test 72 Perform MCOPY operations that expand the memory by huge amounts, and verify that it correctly