Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Code Constants #36

Open
stiefn opened this issue Sep 4, 2024 · 0 comments
Open

Code Constants #36

stiefn opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stiefn
Copy link
Contributor

stiefn commented Sep 4, 2024

From the AST we could figure out some constants. In particular we could also figure out which constants are used as keys in which mappings? We cannot detect such keys based on the traces because the compiler computes the slots at compile time.

mapping (address => uint) x;

constructor() {
  x[address(0)] = 50;
}
@stiefn stiefn added the enhancement New feature or request label Sep 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant