Skip to content

Commit

Permalink
Add vm.isContext cheatcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHaku committed Apr 22, 2024
1 parent 5dd1c68 commit 739005d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/Vm.sol

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

2 changes: 1 addition & 1 deletion 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(0x97511f22), "VmSafe");
assertEq(type(VmSafe).interfaceId, bytes4(0xf3fe3a7f), "VmSafe");
assertEq(type(Vm).interfaceId, bytes4(0xaf68a970), "Vm");
}
}

0 comments on commit 739005d

Please sign in to comment.