βœ…Time

Time

Setup

Target contract:

Test file:

vm.warp()

If we call bid() right away, it will fail because the auction is not started yet:

If we call bid() at block.timestamp + 1 days, it works:

But if we call bid() at block.timestamp + 2 days, it will fail because the audtion was already ended:

skip and rewind

Similar to vm.warp():

vm.roll()

Set block.number:

Last updated

Was this helpful?