-
Notifications
You must be signed in to change notification settings - Fork 246
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
Try to get rid of compiling warnings #385
Labels
Comments
#383 removes almost all the compiler warnings in our code. I actually listed the warnings that are still standing. |
So should we close this one? Do you want to put a "Closing .." footer to #383 so this one gets closed once that one is merged? |
Yep, we should close this with #383 and then create issues for the remaining warnings so we can track them separately. |
sohkai
pushed a commit
that referenced
this issue
Aug 26, 2018
There's a ton of changes in this PR, the main goals were updating to the new compiler version and doing some clean up to reduce the number of compiler warnings (close #385): - Bumps truffle dependency to a more recent one that comes with Solidity 0.4.24. - Fixes almost all compiler warnings we care about - Changes all constructors to the new `constructor()` syntax - Adds `emit` keyword to all events - Passing anything other than a bytes array to `keccak256()` is now deprecated, a manual `abi.encodePacked(...)` has been added when calculating all hashes. - 💥Removes all the fun [custom abi encoding](https://github.com/aragon/aragonOS/pull/383/files#diff-6d2e88efa27690b63879e31ffb310725L9) in favor of using `abi.encodeWithSelector` - Update solidity-coverage to `0.5.7`. Solidity mocks and tests had to be moved to `contracts/tests` so they could be instrumented correctly (see sc-forks/solidity-coverage#182) and not interfere with the ABI-swapping.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Main rationale:
ethereum/solidity#4315 (comment)
Besides, it would make easier to spot compiling errors while developing, that sometimes get buried among long list of warnings.
The text was updated successfully, but these errors were encountered: