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

Added boundLog #8870

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

07Vaishnavi-Singh
Copy link

@07Vaishnavi-Singh 07Vaishnavi-Singh commented Sep 16, 2024

This PR Solves Issue number #8788

Added boundLog function for a uniform distribution for smaller UintTypes and Logarithmic for larger types
Here I have considered uint8,uin16,uint32,uint64 to be smaller UintTypes (uniform distribution)
Uint128, Uint256 are set to follow Logarithmic Distribrution
Added an extra enum TypeUint and DistributionType for Type Determination
Added extra structs ParamConfig and UintValue to store the type and value in a single variable

@DaniPopes
Copy link
Member

Hey I don't know what you're trying to achieve with changing a test file. Cheatcodes are implemented in Rust, please see https://github.com/foundry-rs/foundry/blob/master/docs/dev/cheatcodes.md

@grandizzy
Copy link
Collaborator

added some thoughts here on how I think it should be implemented #8788 (comment)

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.

3 participants