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

Support vm.mockCalls cheatcode #721

Open
Jrigada opened this issue Nov 11, 2024 · 2 comments
Open

Support vm.mockCalls cheatcode #721

Jrigada opened this issue Nov 11, 2024 · 2 comments
Labels
needs triage ♟️ Issue needs to be picked up or assigned p3 🔵 Indicates low priority item upstream-parity 🟰 Needed for upstream feature parity

Comments

@Jrigada
Copy link
Contributor

Jrigada commented Nov 11, 2024

Mocks multiple call to an address, returning specified data for each call. Calldata can either be strict or a partial match, e.g. if you only pass a Solidity selector to the expected calldata, then the entire Solidity function will be mocked.
function mockCalls(address, bytes calldata, bytes[] calldata) external;

@Jrigada Jrigada added the p3 🔵 Indicates low priority item label Nov 11, 2024
@elfedy
Copy link
Contributor

elfedy commented Nov 11, 2024

This was added by foundry: foundry-rs/foundry#9024, we should support this already in theory, just need to test it works?

@Jrigada
Copy link
Contributor Author

Jrigada commented Nov 11, 2024

Yes!

@tomimor tomimor added needs triage ♟️ Issue needs to be picked up or assigned upstream-parity 🟰 Needed for upstream feature parity labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage ♟️ Issue needs to be picked up or assigned p3 🔵 Indicates low priority item upstream-parity 🟰 Needed for upstream feature parity
Projects
None yet
Development

No branches or pull requests

3 participants