Skip to content

Commit 669e4a6

Browse files
authored
feat: add vm.sleep(uint) to VmSafe interface (#438)
1 parent 4b8d29e commit 669e4a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Vm.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,4 +539,6 @@ interface Vm is VmSafe {
539539
function transact(bytes32 txHash) external;
540540
// Fetches the given transaction from the given fork and executes it on the current state
541541
function transact(uint256 forkId, bytes32 txHash) external;
542+
// Suspends execution of the main thread for `duration` milliseconds
543+
function sleep(uint256 duration) external;
542544
}

0 commit comments

Comments
 (0)