test_slotnum_mainnet()¶
Documentation for tests/amsterdam/eip7843_slotnum/test_eip_mainnet.py::test_slotnum_mainnet@c17999c0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7843_slotnum/test_eip_mainnet.py::test_slotnum_mainnet --fork Amsterdam
Test that SLOTNUM executes and pushes one stack item.
Asserts on POP(SLOTNUM) followed by a storage write rather than
on the slot value itself, so the test remains valid when
execute-ed against a live network, where the slot number is
whatever the consensus layer transmits and cannot be controlled by
the test.
Source code in tests/amsterdam/eip7843_slotnum/test_eip_mainnet.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.