test_tstore_clear_after_tx()
¶
Documentation for tests/cancun/eip1153_tstore/test_tstorage_clear_after_tx.py::test_tstore_clear_after_tx@83970623
.
Generate fixtures for these test cases for Prague with:
fill -v tests/cancun/eip1153_tstore/test_tstorage_clear_after_tx.py::test_tstore_clear_after_tx --fork Prague
First SSTOREs the TLOAD value of key 1 in slot 1. Then, it TSTOREs 1 in slot 1. The second tx will re-call the contract. The storage should stay empty, because the transient storage is cleared after the transaction.
Source code in tests/cancun/eip1153_tstore/test_tstorage_clear_after_tx.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
Parametrized Test Cases¶
This test case is only parametrized by fork.
Test ID (Abbreviated) | evm_code_type |
---|---|
...fork_Cancun-evm_code_type_LEGACY-blockchain_test | LEGACY |
...fork_Prague-evm_code_type_LEGACY-blockchain_test | LEGACY |
...fork_Osaka-evm_code_type_LEGACY-blockchain_test | LEGACY |
...fork_Osaka-evm_code_type_EOF_V1-blockchain_test | EOF_V1 |