-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Remove hardhat-foundry
and check harnesses compilation in CI
#4832
Remove hardhat-foundry
and check harnesses compilation in CI
#4832
Conversation
|
hardhat.config.js
Outdated
@@ -115,7 +114,7 @@ module.exports = { | |||
}, | |||
networks: { | |||
hardhat: { | |||
allowUnlimitedContractSize, | |||
allowUnlimitedContractSize: !withOptimizations, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for this rollback ? IMO, if the coverage is enabled, then optimizations should be on, but contract size should not be limitted. (coverage does increasse the size)
I first wanted to use conflicts, but then decided against it because it caused issues with SRC. I review you proposal, but it doesn't work. If I do
as nice as |
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/@nomicfoundation/hardhat-foundry@1.1.1 |
It appears that both checks/tests, and checks/tests-foundry work without the foundry hardhat package. The package still has a usage though: it overrides the I'm proposing we remove the hardhat-foundry, because of the complexity is adds to handling configs in hardhat.config.js ... and add a dedicated script in the |
hardhat-foundry
and check harnesses compilation in CI
After reviewing it looks good. The downside of this is that remappings are inherited from other submodules and also include some defaults. Now we shouldn't have access to those but aren't required. In any case, we can always:
LGTM |
Before merging #4781, I tried running the FV in master and it resulted in a compilation error after 25c416d
I fixed the issues and renamed variables accordingly. I'm also adding a check for it in the CI to avoid happening again.
PR Checklist
npx changeset add
)