Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 270 Bytes

rewind.md

File metadata and controls

19 lines (13 loc) · 270 Bytes

rewind

Signature

function rewind(uint256 time) public;

Description

Rewinds block.timestamp by the specified number of seconds.

Examples

assertEq(block.timestamp, 3600);
rewind(3600);
assertEq(block.timestamp, 0);