Sitelet https://github.com/foundry-rs/forge-std/commit/799589bfa97698c2bdf0ba8df4d461b607e36c57
Skip to content

Commit 799589b

Browse files
avoryllizerosnacks
andauthored
fix: correct error messages in StdStorage parent() and root() functions (#723)
Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
1 parent e6dc35f commit 799589b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/StdStorage.sol‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ library stdStorageSafe {
252252
(bool found, bytes32 key, bytes32 parent_slot) = vm.getMappingKeyAndParentOf(who, bytes32(child));
253253
if (!found) {
254254
revert(
255-
"stdStorage read_bool(StdStorage): Cannot find parent. Make sure you give a slot and startMappingRecording() has been called."
255+
"stdStorage parent(StdStorage): Cannot find parent. Make sure you give a slot and startMappingRecording() has been called."
256256
);
257257
}
258258
return (uint256(parent_slot), key);
@@ -269,7 +269,7 @@ library stdStorageSafe {
269269
(found,, parent_slot) = vm.getMappingKeyAndParentOf(who, bytes32(child));
270270
if (!found) {
271271
revert(
272-
"stdStorage read_bool(StdStorage): Cannot find parent. Make sure you give a slot and startMappingRecording() has been called."
272+
"stdStorage root(StdStorage): Cannot find parent. Make sure you give a slot and startMappingRecording() has been called."
273273
);
274274
}
275275
while (found) {

0 commit comments

Comments
 (0)