@@ -63,8 +63,7 @@ def _create_contract_fixtures(contracts_dir: Path) -> None:
6363 # Simple safe contract
6464 simple_safe = contracts_dir / "simple_safe.sol"
6565 if not simple_safe .exists ():
66- simple_safe .write_text (
67- """
66+ simple_safe .write_text ("""
6867pragma solidity ^0.8.0;
6968
7069contract SimpleSafe {
@@ -78,14 +77,12 @@ def _create_contract_fixtures(contracts_dir: Path) -> None:
7877 return value;
7978 }
8079}
81- """
82- )
80+ """ )
8381
8482 # Reentrancy vulnerable contract
8583 reentrancy_vulnerable = contracts_dir / "reentrancy_vulnerable.sol"
8684 if not reentrancy_vulnerable .exists ():
87- reentrancy_vulnerable .write_text (
88- """
85+ reentrancy_vulnerable .write_text ("""
8986pragma solidity ^0.8.0;
9087
9188contract ReentrancyVulnerable {
@@ -106,14 +103,12 @@ def _create_contract_fixtures(contracts_dir: Path) -> None:
106103 balances[msg.sender] += msg.value;
107104 }
108105}
109- """
110- )
106+ """ )
111107
112108 # Safe reentrancy pattern
113109 reentrancy_safe = contracts_dir / "reentrancy_safe.sol"
114110 if not reentrancy_safe .exists ():
115- reentrancy_safe .write_text (
116- """
111+ reentrancy_safe .write_text ("""
117112pragma solidity ^0.8.0;
118113
119114contract ReentrancySafe {
@@ -141,14 +136,12 @@ def _create_contract_fixtures(contracts_dir: Path) -> None:
141136 balances[msg.sender] += msg.value;
142137 }
143138}
144- """
145- )
139+ """ )
146140
147141 # Contract with syntax error for testing error handling
148142 syntax_error = contracts_dir / "syntax_error.sol"
149143 if not syntax_error .exists ():
150- syntax_error .write_text (
151- """
144+ syntax_error .write_text ("""
152145pragma solidity ^0.8.0;
153146
154147contract SyntaxError {
@@ -159,8 +152,7 @@ def _create_contract_fixtures(contracts_dir: Path) -> None:
159152 value = _value;
160153 }
161154}
162- """
163- )
155+ """ )
164156
165157
166158def _create_bytecode_fixtures (bytecode_dir : Path ) -> None :
0 commit comments