Skip to content

upgrade foundry deps to v1.4.3#1358

Open
AmadiMichael wants to merge 6 commits intomainfrom
amadi/foundry-1.4.3-upgrade
Open

upgrade foundry deps to v1.4.3#1358
AmadiMichael wants to merge 6 commits intomainfrom
amadi/foundry-1.4.3-upgrade

Conversation

@AmadiMichael
Copy link
Copy Markdown
Contributor

@AmadiMichael AmadiMichael commented Jan 28, 2026

Upgrade foundry dependencies to 1.4.3.

  • This new version has a new linter so semver lock for file content changed for a lot of files hence the patch version bump across different files
  • This new version also has a lot of linter benefits, some of which we have scripts for, to make this PR as small as possible, i added all of them that we are currently experencing after compiling and linting into an exception list in foundry.toml which I will be using future prs to remove and fixing the resulting errors + removing our existing script for it.
  • The new lockfile, foundry.lock, tracks exact revisions for all dependencies in lib/.

Proposal PR: ethereum-optimism/design-docs#363

Comment thread foundry.lock
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should explain what this file is in the PR description. Also, do we still need the gitmodules file with this, or should it be deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread foundry.toml
gas_limit = "18446744073709551615" # max allowable value, which is max uint64
ffi = true # Enable FFI for reading lib/superchain-registry files in scripts SignFromJson.s.sol, NestedSignFromJson.s.sol within tasks
no_match_coverage = 'src/template/boilerplate/|script/|src/JsonTxBuilderBase.sol|test'
script_execution_protection = false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also a good thing to explain or link to docs about for reviewers in the PR description

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done here 9b708fd

Comment thread remappings.txt Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to add this file, can it be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done here 9b708fd

Comment on lines +206 to +207
Simulation.StorageOverride[] memory combined = new Simulation
.StorageOverride[](defaultOverrides_[j].overrides.length + userDefinedOverride_.overrides.length);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a weird formatter split, is this a bug or is there a way we can fix it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably the work of the new formatter

Comment thread foundry.toml
Comment thread src/tasks/TaskManager.sol
Comment thread src/template/boilerplate/SimpleTaskBase.template.sol
Comment thread src/template/OPCMUpgradeV600.sol
Comment thread test/registry/SuperchainAddressRegistry.t.sol
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