Skip to content

Commit

Permalink
Merge pull request #615 from Tudmotu/vm.mockCalls
Browse files Browse the repository at this point in the history
Update Vm.sol with vm.mockCalls methods
  • Loading branch information
zerosnacks authored Oct 10, 2024
2 parents 4b16934 + 42ce013 commit 0ce0050
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 17 additions & 5 deletions 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,10 +9,10 @@ import {Vm, VmSafe} from "../src/Vm.sol";
// added to or removed from Vm or VmSafe.
contract VmTest is Test {
function test_VmInterfaceId() public pure {
assertEq(type(Vm).interfaceId, bytes4(0x35457718), "Vm");
assertEq(type(Vm).interfaceId, bytes4(0x61a5f010), "Vm");
}

function test_VmSafeInterfaceId() public pure {
assertEq(type(VmSafe).interfaceId, bytes4(0x681d10d4), "VmSafe");
assertEq(type(VmSafe).interfaceId, bytes4(0xf7f67508), "VmSafe");
}
}

0 comments on commit 0ce0050

Please sign in to comment.