-
Notifications
You must be signed in to change notification settings - Fork 269
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
Does not work with Solidity v0.8 "unchecked" blocks #626
Comments
@PaulRBerg Yes, makes sense. We need to add Thanks for reporting. |
Hey @cgewecke, is there any we could help you speed up development on this? You may have heard about the Gitcoin Grants programme. You basically set up a profile, link it on GitHub and social media, then people can donate ETH and ERC-20 tokens. I, and I'm sure many others too, would be happy to contribute to your grant. |
@PaulRBerg Ah! Really sorry, this fell through cracks.... will look at this ASAP (and fix a few other things here) Will look at grants, thanks! |
Awesome. |
This is finally fixed in |
Ok, weird.... I'll look at this again. Need to add a test for this syntax. |
This is fixed in 0.7.21 (for real :) ) |
Amazing, thank you! |
Description
Solidity v0.8 introduced checked and unchecked arithmetic.
I recently noticed that none of the code wrapped in my
unchecked
blocks is analysed by solidity-coverage. For instance, look at line #149 in Coveralls build no. 38616686 of my prb-math repo:None of the code inside is highlighted to reflect whether my tests hit those lines or not. In fact, I know of one line that definitely hasn't been reached by my tests, that is line #230 (and presumably this is also true of some of the many if branches in there).
Environment
The text was updated successfully, but these errors were encountered: