Skip to content

Commit 9727984

Browse files
committed
fix: use vm.getBlockTimestamp
1 parent 83c5d21 commit 9727984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StdCheats.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,11 @@ abstract contract StdCheats is StdCheatsSafe {
645645

646646
// Skip forward or rewind time by the specified number of seconds
647647
function skip(uint256 time) internal virtual {
648-
vm.warp(block.timestamp + time);
648+
vm.warp(vm.getBlockTimestamp() + time);
649649
}
650650

651651
function rewind(uint256 time) internal virtual {
652-
vm.warp(block.timestamp - time);
652+
vm.warp(vm.getBlockTimestamp() - time);
653653
}
654654

655655
// Setup a prank from an address that has some ether

0 commit comments

Comments
 (0)