You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cheatcodes): add deterministic random value generation with seed (#8622)
* feat(cheatcodes): add ability to set seed for `vm.randomUint()`
* chore: move `vm.randomAddress` test to its own contract
* feat(cheatcodes): add ability to set seed for `vm.randomAddress()`
* feat: use global seed instead of introducing new cheatcodes
* chore: clean up
* chore: clean up tests
* feat: add `fuzz.seed` as inline parameter in tests
* chore: trim 0x prefix
* chore: nit
* test: update random tests
* fix: inline parsing on fuzz seed
* test: set seed and update random tests
* chore: remove inline config for seed
* chore: clean up
* chore: clean up tests
* test: remove deterministic tests from testdata
* test: implement forgetest to test that forge test with a seed produces deterministic random values
* test: fix tests
* chore: clean up
* test: remove seed
* fix: clippy and forge-fmt
* chore: clean up
* chore: rename test contract
* fix: lint
* chore: move rng to state instead of creating a new one when calling `vm.random*` cheats
* chore: nit
* test: update tests
* fix: clippy
* chore: nit
* chore: clean up
* Update crates/cheatcodes/src/inspector.rs
Co-authored-by: DaniPopes <[email protected]>
* test: only check outputs are the same or different
* chore: clean up
* chore: nits
---------
Co-authored-by: DaniPopes <[email protected]>
0 commit comments