-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow Compilation without via-ir #156
Conversation
… allow compilation without via-ir
Changes to gas cost
🧾 Summary (5% most significant diffs)
Full diff report 👇
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #156 +/- ##
===========================================
+ Coverage 75.07% 91.34% +16.26%
===========================================
Files 13 13
Lines 682 716 +34
Branches 157 136 -21
===========================================
+ Hits 512 654 +142
+ Misses 170 62 -108
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Nice job. |
fwiw, I believe scripts should also be tested and hence be included in the coverage. see: https://book.getfoundry.sh/tutorials/best-practices?highlight=testing%20scripts#scripts |
what benefit do we get by repeating the same tests in hardhat? I believe only the test which can be written in hardhat (testing against client-side or server-side code) should be written in hardhat, for rest we should just default to foundry |
Also, there's a section in the coverage report generation script that removes test, mocks and other deps:
|
it's removed and give you the actual real coverage when you do |
Allow Compilation without via-ir
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
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.
LGTM. just tellme how many sloc changes with a commit hash would be helpful to scope this in
@Aboudjem is there a tool/GitHub integration that can report this number? |
I am opening one PR with 0.8.27 also, linting diffs would confuse auditors for PR diff view and scoping. |
Coverage with via-ir enabled
Foundry
Hardhat
Coverage with via-ir disabled
Foundry
Hardhat
Significant Improvements in the coverage reported by Foundry can be observed, but interestingly, the results from hardhat are unchanged. I don't know why this is the case, perhaps the hardhat handles it differently.