From a3f287afc896bbc3b8a53669d41038cd8a59c083 Mon Sep 17 00:00:00 2001 From: evalir Date: Thu, 29 Jun 2023 10:43:46 -0400 Subject: [PATCH] feat: add vm.skip(bool) (#410) * feat: add vm.skip(bool) * chore: dont name var like func name --- src/Vm.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Vm.sol b/src/Vm.sol index 691671da..a31db147 100644 --- a/src/Vm.sol +++ b/src/Vm.sol @@ -394,6 +394,8 @@ interface Vm is VmSafe { function deal(address account, uint256 newBalance) external; // Sets an address' code function etch(address target, bytes calldata newRuntimeBytecode) external; + // Marks a test as skipped. Must be called at the top of the test. + function skip(bool skipTest) external; // Expects an error on next call function expectRevert(bytes calldata revertData) external; function expectRevert(bytes4 revertData) external;