Skip to content

Commit af9c7df

Browse files
address comment
1 parent 7f4f518 commit af9c7df

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/cancun/eip1153_tstore/test_tstorage_clear_after_tx.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_tstore_clear_after_deployment_tx(
8080
def test_tstore_clear_after_tx(
8181
blockchain_test: BlockchainTestFiller,
8282
pre: Alloc,
83-
evm_code_type: EVMCodeType,
8483
):
8584
"""
8685
This test first SSTOREs the TLOAD value of key 1 in slot 1. Then, it TSTOREs 1 in slot 1.
@@ -89,14 +88,7 @@ def test_tstore_clear_after_tx(
8988
"""
9089
env = Environment()
9190

92-
runtime_code = Op.SSTORE(1, Op.TLOAD(1)) + Op.TSTORE(1, 1)
93-
94-
code: Optional[Container | Bytecode] = None
95-
if evm_code_type == EVMCodeType.EOF_V1:
96-
code = Container.Code(runtime_code)
97-
else:
98-
code = runtime_code
99-
91+
code = Op.SSTORE(1, Op.TLOAD(1)) + Op.TSTORE(1, 1)
10092
account = pre.deploy_contract(code)
10193

10294
sender = pre.fund_eoa()

0 commit comments

Comments
 (0)