Skip to content

Commit

Permalink
feat: add the latest cheatcodes (#633)
Browse files Browse the repository at this point in the history
- add `delegatecall` flag to `prank` cheatcodes
(foundry-rs/foundry#8863)
- support EIP-7702 Delegations (`create/sign/attachDelegation`)
(foundry-rs/foundry#9236)
- add `contains` to check if a string contains another string
(foundry-rs/foundry#9085)
  • Loading branch information
grandizzy authored Nov 25, 2024
1 parent 2b59872 commit 83c5d21
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 66 deletions.
163 changes: 99 additions & 64 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(0xa95c1408), "Vm");
assertEq(type(Vm).interfaceId, bytes4(0x21af9696), "Vm");
}

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

0 comments on commit 83c5d21

Please sign in to comment.