We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vm.getBlockTimestamp
1 parent 83c5d21 commit 9727984Copy full SHA for 9727984
src/StdCheats.sol
@@ -645,11 +645,11 @@ abstract contract StdCheats is StdCheatsSafe {
645
646
// Skip forward or rewind time by the specified number of seconds
647
function skip(uint256 time) internal virtual {
648
- vm.warp(block.timestamp + time);
+ vm.warp(vm.getBlockTimestamp() + time);
649
}
650
651
function rewind(uint256 time) internal virtual {
652
- vm.warp(block.timestamp - time);
+ vm.warp(vm.getBlockTimestamp() - time);
653
654
655
// Setup a prank from an address that has some ether
0 commit comments