Skip to content

Commit

Permalink
feat: add resetGasMetering and expectPartialRevert cheatcodes (#597)
Browse files Browse the repository at this point in the history
* Add resetGasMetering cheatcode

* Add expectPartialRevert cheatcode
  • Loading branch information
grandizzy authored Aug 29, 2024
1 parent 58d3051 commit 4695fac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/Vm.sol

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/Vm.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract VmTest is Test {
// inadvertently moved between Vm and VmSafe. This test must be updated each time a function is
// added to or removed from Vm or VmSafe.
function test_interfaceId() public pure {
assertEq(type(VmSafe).interfaceId, bytes4(0x23e7dc1b), "VmSafe");
assertEq(type(Vm).interfaceId, bytes4(0x1316b43e), "Vm");
assertEq(type(VmSafe).interfaceId, bytes4(0x9dd1a1c8), "VmSafe");
assertEq(type(Vm).interfaceId, bytes4(0x02edefa2), "Vm");
}
}

0 comments on commit 4695fac

Please sign in to comment.