test_transient_storage_gas_unchanged()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_transient_storage_regression.py::test_transient_storage_gas_unchanged@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_transient_storage_regression.py::test_transient_storage_gas_unchanged --fork Amsterdam
Measure TLOAD and TSTORE gas and confirm EIP-8038 left them
at the transient-storage price of 100 each.
The bare-opcode costs (excluding their PUSH wrappers) must equal
OPCODE_TLOAD / OPCODE_TSTORE. The guard
OPCODE_TSTORE != COLD_STORAGE_WRITE ensures the persistent
write repricing did not bleed into transient storage.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_transient_storage_regression.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.