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

Create deterministic builds with forge-gen #25

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented Jan 9, 2024

This PR includes a deterministic build process for the forge-gen tool:

  • Build the contracts from within the tool and do not rely on a pre-step.
  • Use bytecode_hash=none. Otherwise, a non-deterministic value is appended to the bytecode.
  • Use a custom foundry.toml file for the tool independent from the repo configuration.

@ferranbt ferranbt requested a review from metachris as a code owner January 9, 2024 13:07
@ferranbt ferranbt merged commit d82abfe into main Jan 9, 2024
2 checks passed
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.

1 participant