@@ -112,8 +112,8 @@ contract StateDiffBytesStringTest is DSTest {
112112 vm.startStateDiffRecording ();
113113
114114 // Set a long string (32 bytes or more)
115- string memory longStr =
116- "This is a very long string that exceeds 32 bytes and will be stored differently in Solidity storage " ;
115+ string
116+ memory longStr = "This is a very long string that exceeds 32 bytes and will be stored differently in Solidity storage " ;
117117 bytesStringStorage.setLongString (longStr);
118118
119119 // Get the state diff as string
@@ -142,7 +142,11 @@ contract StateDiffBytesStringTest is DSTest {
142142 uint256 writeCount = 0 ;
143143 for (uint256 i = 0 ; i < accesses.length ; i++ ) {
144144 if (accesses[i].account == address (bytesStringStorage)) {
145- for (uint256 j = 0 ; j < accesses[i].storageAccesses.length ; j++ ) {
145+ for (
146+ uint256 j = 0 ;
147+ j < accesses[i].storageAccesses.length ;
148+ j++
149+ ) {
146150 if (accesses[i].storageAccesses[j].isWrite) {
147151 writeCount++ ;
148152 }
@@ -239,7 +243,9 @@ contract StateDiffBytesStringTest is DSTest {
239243
240244 // Make multiple changes
241245 bytesStringStorage.setShortString ("Short " );
242- bytesStringStorage.setLongString ("This is a long string that will use multiple storage slots for data " );
246+ bytesStringStorage.setLongString (
247+ "This is a long string that will use multiple storage slots for data "
248+ );
243249 bytesStringStorage.setShortBytes (hex "1234 " );
244250 bytesStringStorage.setFixedBytes (bytes32 (uint256 (0xdeadbeef )));
245251
@@ -267,29 +273,4 @@ contract StateDiffBytesStringTest is DSTest {
267273 // Stop recording
268274 vm.stopAndReturnStateDiff ();
269275 }
270-
271- // TODO: Remove
272- // function testEmptyBytesAndString() public {
273- // // Start recording state diffs
274- // vm.startStateDiffRecording();
275-
276- // // First set some values
277- // bytesStringStorage.setShortString("Not empty");
278- // bytesStringStorage.setShortBytes(hex"abcd");
279-
280- // // Then clear them
281- // bytesStringStorage.setShortString("");
282- // bytesStringStorage.setShortBytes("");
283-
284- // // Get the state diff as JSON
285- // string memory stateDiffJson = vm.getStateDiffJson();
286- // emit log_string("State diff JSON for empty values:");
287- // emit log_string(stateDiffJson);
288-
289- // // Check that empty values are properly decoded
290- // assertTrue(vm.contains(stateDiffJson, '"newValue":""'));
291-
292- // // Stop recording
293- // vm.stopAndReturnStateDiff();
294- // }
295276}
0 commit comments