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(StdAssertions): Add assertEqCall #311

Merged
merged 4 commits into from
Feb 28, 2023

Conversation

0xPhaze
Copy link
Contributor

@0xPhaze 0xPhaze commented Feb 24, 2023

Adds new assertions to StdAssertions.sol. These are useful for differential fuzz-testing calls.
Expects two calls to either return the same data or revert in the same way (if strictRevertData = true).

function assertEqCall(
    address targetA,
    bytes memory callDataA,
    address targetB,
    bytes memory callDataB,
    bool strictRevertData
) internal virtual;

@0xPhaze 0xPhaze changed the title Add assertEqCall to StdAssertions feat(StdAssertions): Add assertEqCall Feb 25, 2023
@mds1
Copy link
Collaborator

mds1 commented Feb 28, 2023

A few small comments, otherwise this looks great!

Copy link
Collaborator

@mds1 mds1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @0xPhaze!

@mds1 mds1 merged commit 653eff5 into foundry-rs:master Feb 28, 2023
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.

2 participants