-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(cheatcodes): support native bound
cheatcode
#8788
Comments
bound
cheatcode
Hey I am working under WIEP (cohort 2 )and would like to work on this issue |
Hey @zerosnacks , following the Contribution Guidlines when I am running |
Hey, I got clarified about the above issue in the TG grp and run it locally for any additional Failing Testcases and the PR is ready to be reviewed. Thanks @grandizzy @zerosnacks |
can I get assigned to this @jenpaff |
assigned! |
Component
Forge
Describe the feature you would like
see convo foundry-rs/forge-std#584 (comment)
Additional context
The uint and int strategies should take an option with min / max bound values
foundry/crates/evm/fuzz/src/strategies/uint.rs
Lines 96 to 109 in 2b39094
which should be enforced on value tree current values
foundry/crates/evm/fuzz/src/strategies/uint.rs
Lines 46 to 48 in 2b39094
the
randomUint
/randomInt
cheatcodes should reuse the UintStrategy/IntStrategy to apply bounds (PR feat(cheatcodes): random* cheatcodes to aid in symbolic testing #8882 is updating these cheatcodes to use proptest strategies)for fuzzed tests we could use the inline config as suggested in feat: add boundLog to enable log-uniform sampling forge-std#584 (comment)
and pass the min / max bound values to UintStrategy/IntStrategy
The text was updated successfully, but these errors were encountered: