Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mockCall overloads #630

Merged
merged 1 commit into from
Nov 8, 2024
Merged

feat: mockCall overloads #630

merged 1 commit into from
Nov 8, 2024

Conversation

yash-atreya
Copy link
Member

@yash-atreya yash-atreya commented Nov 8, 2024

Ref: foundry-rs/foundry#9267

Adds the following overloads for vm.mockCall.

function mockCall(address callee, bytes4 data, bytes calldata returnData) external;

function mockCall(address callee, uint256 msgValue, bytes4 data, bytes calldata returnData) external;

function mockCallRevert(address callee, uint256 msgValue, bytes4 data, bytes calldata revertData) external;

function mockCallRevert(address callee, bytes4 data, bytes calldata revertData) external;

@yash-atreya yash-atreya merged commit 0e70977 into master Nov 8, 2024
3 checks passed
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