Skip to content

Commit 7e4dfdd

Browse files
committed
nit
1 parent c0b1749 commit 7e4dfdd

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

testdata/default/cheats/StateDiffBytesString.t.sol

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -56,57 +56,6 @@ contract StateDiffBytesStringTest is DSTest {
5656
bytesStringStorage = new BytesStringStorage();
5757
}
5858

59-
// function testShortStringStorage() public {
60-
// // Start recording state diffs
61-
// vm.startStateDiffRecording();
62-
63-
// // Set a short string (less than 32 bytes)
64-
// bytesStringStorage.setShortString("Hello, World!");
65-
66-
// // Get the state diff as string
67-
// string memory stateDiff = vm.getStateDiff();
68-
// emit log_string("State diff for short string:");
69-
// emit log_string(stateDiff);
70-
71-
// // Get the state diff as JSON
72-
// string memory stateDiffJson = vm.getStateDiffJson();
73-
// emit log_string("State diff JSON for short string:");
74-
// emit log_string(stateDiffJson);
75-
76-
// // Verify the JSON contains expected fields
77-
// assertTrue(vm.contains(stateDiffJson, '"label":"shortString"'));
78-
// assertTrue(vm.contains(stateDiffJson, '"type":"string"'));
79-
// assertTrue(vm.contains(stateDiffJson, '"decoded":'));
80-
81-
// // Check that the decoded value contains our string
82-
// assertTrue(vm.contains(stateDiffJson, '"newValue":"Hello, World!"'));
83-
84-
// // Stop recording
85-
// Vm.AccountAccess[] memory accesses = vm.stopAndReturnStateDiff();
86-
// assertTrue(accesses.length > 0);
87-
88-
// // Verify storage access for shortString at slot 0
89-
// bool foundSlot = false;
90-
// for (uint256 i = 0; i < accesses.length; i++) {
91-
// if (accesses[i].account == address(bytesStringStorage)) {
92-
// for (
93-
// uint256 j = 0;
94-
// j < accesses[i].storageAccesses.length;
95-
// j++
96-
// ) {
97-
// if (
98-
// accesses[i].storageAccesses[j].slot ==
99-
// bytes32(uint256(0))
100-
// ) {
101-
// foundSlot = true;
102-
// assertTrue(accesses[i].storageAccesses[j].isWrite);
103-
// }
104-
// }
105-
// }
106-
// }
107-
// assertTrue(foundSlot);
108-
// }
109-
11059
function testLongStringStorage() public {
11160
// Start recording state diffs
11261
vm.startStateDiffRecording();

0 commit comments

Comments
 (0)