Skip to content

Commit

Permalink
Update Vm with mockCalls and VmSafe with randomBytes methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudmotu committed Oct 4, 2024
1 parent 4e5f46a commit 42ce013
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 42ce013

Please sign in to comment.