Skip to content

feat(vm): add expectCall with CallKind - #947

Open
agnij-dutta wants to merge 1 commit into
foundry-rs:masterfrom
agnij-dutta:feat/expect-call-kind
Open

agnij-dutta wants to merge 1 commit into
foundry-rs:masterfrom
agnij-dutta:feat/expect-call-kind

Conversation

@agnij-dutta

Copy link
Copy Markdown

Adds expectCall(CallKind kind, address callee, bytes calldata data) and the CallKind enum (Call, DelegateCall, StaticCall) from foundry-rs/foundry#17503 to Vm.sol, and updates the Vm interface ID in test/Vm.t.sol (0x9ae1b86f to 0xc6fb98f9, the old ID XOR the new selector 0x5c1a2096). VmSafe is unchanged.

Generated with scripts/vm.py --from the cheatcodes.json on the foundry branch. I only took the lines for this cheatcode, so the doc-comment updates that are already on foundry master but not here yet (and the transient storage cheatcodes in #946) stay out of this diff.

forge test --match-path test/Vm.t.sol passes and forge fmt --check is clean on both files.

This should merge after foundry-rs/foundry#17503.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant