test_stack_access_opcodes_mainnet()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_eip_mainnet.py::test_stack_access_opcodes_mainnet@ffe48572.
Generate fixtures for these test cases for Amsterdam with:
Test that DUPN, SWAPN and EXCHANGE execute with correct results.
Each opcode moves a distinct planted marker to the top of the stack,
which is then stored. The opcodes do not depend on any environment
value, so the full post-state assertion holds when execute-ed on a
live network. Storage keys start at nonzero canaries so a failed
transaction is distinguishable from a successful one.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_eip_mainnet.py
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.