Skip to content
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

Solc check #62

Merged
merged 2 commits into from
Apr 25, 2022
Merged

Solc check #62

merged 2 commits into from
Apr 25, 2022

Conversation

mds1
Copy link
Contributor

@mds1 mds1 commented Apr 15, 2022

Closes #49

The solc and slither checks are pretty similar:

  • Both compile contracts from Etherscan
  • They share a lot of the same logic

Right now, this means we compile contracts twice and have some code duplicated. I'd like to cut down on this, but want to think about the best way to do it. One approach is to have the solc check export a zip file, and have slither consume that zip file instead of re-compiling contracts.

However, I didn't do that right now are because it couples the two checks, and makes the ordering matter. Additionally we currently use a Promise.all to execute proposal checks, which wouldn't work if the ordering of those two checks matters. Tracking this improvement in #63

@mds1 mds1 requested a review from moodysalem April 15, 2022 23:57
@mds1 mds1 merged commit f46d643 into main Apr 25, 2022
@mds1 mds1 deleted the solc-check branch April 25, 2022 13:32
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.

proposal check: show compiler warnings for all touched contracts
1 participant