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

feat: Blockhash returning expected value #480

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

Jrigada
Copy link
Contributor

@Jrigada Jrigada commented Jul 18, 2024

Motivation

Previously, the CheatcodeTracer was configured to override the blockhash calls and return 0. This approach was a temporary solution to ensure consistency in the environment data being returned.

Solution

This PR updates the CheatcodeTracer to retrieve and return the actual L1 blockhashes. By intercepting the blockhash calls within the tracer, we ensure that the environment data being returned is consistent with the real L1 blockhashes. This change enhances the accuracy and reliability of the environment data, providing a more realistic testing and debugging experience.

@Jrigada Jrigada changed the title Blockhash returning expected value feat: Blockhash returning expected value Jul 18, 2024
@Jrigada Jrigada merged commit 17d4697 into foundry-update-4af6cfa Jul 19, 2024
3 checks passed
@Jrigada Jrigada deleted the blockhash-changes-upstream branch July 19, 2024 12:30
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