Skip to content

Commit b96a46a

Browse files
authored
chore: update Vm interface cheatcodes (#890)
## Summary - add the latest stable Foundry cheatcodes to `Vm` and `VmSafe` - add `getSelectors`, `parseJsonArrayLength`, and the `mockCall` overload with code-injection control - update the `Vm` and `VmSafe` interface IDs
1 parent 5cf980e commit b96a46a

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

src/Vm.sol

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/Vm.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import {Vm, VmSafe} from "../src/Vm.sol";
99
// added to or removed from Vm or VmSafe.
1010
contract VmTest is Test {
1111
function test_VmInterfaceId() public pure {
12-
assertEq(type(Vm).interfaceId, bytes4(0x23dda1ff), "Vm");
12+
assertEq(type(Vm).interfaceId, bytes4(0x9761f7e8), "Vm");
1313
}
1414

1515
function test_VmSafeInterfaceId() public pure {
16-
assertEq(type(VmSafe).interfaceId, bytes4(0xc784e709), "VmSafe");
16+
assertEq(type(VmSafe).interfaceId, bytes4(0x19e7a4ac), "VmSafe");
1717
}
1818
}

0 commit comments

Comments
 (0)