Test Tstorage Selfdestruct¶
Documentation for tests/cancun/eip1153_tstore/test_tstorage_selfdestruct.py
.
Generate fixtures for these test cases for Cancun with:
Cancun only:
fill -v tests/cancun/eip1153_tstore/test_tstorage_selfdestruct.py --fork=Cancun --evm-bin=/path/to/evm-tool-dev-version
fill -v tests/cancun/eip1153_tstore/test_tstorage_selfdestruct.py --until=Cancun --evm-bin=/path/to/evm-tool-dev-version
Tests for EIP-1153: Transient Storage
Test cases for TSTORE
and TLOAD
opcode calls in reentrancy after self-destruct, taking into
account the changes in EIP-6780.
test_reentrant_selfdestructing_call(state_test, pre_existing_contract, caller_bytecode, callee_bytecode, expected_storage)
¶
Test transient storage in different reentrancy contexts after selfdestructing.
Source code in tests/cancun/eip1153_tstore/test_tstorage_selfdestruct.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
|