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

Add one-line explainers for each function in InvariantTest #283

Open
PaulRBerg opened this issue Jan 25, 2023 · 0 comments
Open

Add one-line explainers for each function in InvariantTest #283

PaulRBerg opened this issue Jan 25, 2023 · 0 comments

Comments

@PaulRBerg
Copy link
Contributor

I know that documenting invariants in the Foundry Book is currently a WIP (and Lucas is handling this in foundry-rs/book#760), but I think that it would be helpful to have a few explainers in Forge Std, too.

Specifically, it would be helpful to have a few one-liners above each function in InvariantTest.

I've recently bumped into foundry-rs/foundry#2963, and apparently the fix is to use targetSender, though it's not super obvious why that fixes the sender bug. Does targetSender act as an allowlist - will Foundry fuzz only the targeted senders? And, when targetSender is not used, all senders are fuzzed by default?

Separately, how does targetSender play with excludeSender?

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

No branches or pull requests

1 participant