Skip to content

build: pin compiler version and optimizer runs in foundry.toml - #64

Open
mertcano wants to merge 1 commit into
base:mainfrom
mertcano:mertcano-patch-1
Open

build: pin compiler version and optimizer runs in foundry.toml#64
mertcano wants to merge 1 commit into
base:mainfrom
mertcano:mertcano-patch-1

Conversation

@mertcano

Copy link
Copy Markdown

Fixes a reproducible-build gap by pinning solc_version, optimizer, and optimizer_runs in foundry.toml.

Because this repository deploys contracts via deterministic CREATE2 addresses, unpinned compiler configurations can cause local builds to diverge from the canonical verified bytecode on Basescan, breaking deployment assertions. This hardening ensures reproducible builds.

Fixes a reproducible-build gap by pinning `solc_version`, `optimizer`, and `optimizer_runs` in `foundry.toml`. 

Because this repository deploys contracts via deterministic CREATE2 addresses, unpinned compiler configurations can cause local builds to diverge from the canonical verified bytecode on Basescan, breaking deployment assertions. This hardening ensures reproducible builds.
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