-
Notifications
You must be signed in to change notification settings - Fork 104
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
Implementation of slither static code analysis #94
Conversation
Signed-off-by: Anton Yip <Anton_Yip@hotmail.com>
Hey @antonyip thanks for the PR! Could you create a config file for Slither to include all of our contracts in the net-emissions-token-network/contracts directory? I see in the README that the script only shows the Governor contract and we have three others we'd like to scan. Thanks! |
Hi @jamesondh, |
Signed-off-by: Anton Yip <Anton_Yip@hotmail.com>
Signed-off-by: Anton Yip <Anton_Yip@hotmail.com>
@antonyip Is it possible to analyze each file individually on your local repo? I tried the command |
Hi @jamesondh, I've tried going down that route..
However, if i delete the files from the repo (because slither is only scanning 1 file at a time)... all the files can be scanned. |
I'm not sure about the first error but perhaps the second is caused by OpenZeppelin's recent deprecation of SafeMath with Solidity 0.8.0? We will have to upgrade our contracts to 0.8.0 at some point. Maybe we can do a workaround for now if you are able to get them to analyze individually, like a shell script that copies the contracts to an empty folder to be analyzed there? Appreciate your help and hopefully we can get this working soon! |
Signed-off-by: Anton Yip <Anton_Yip@hotmail.com>
@jamesondh Updated... |
Thanks I am seeing all of the contracts now -- I will update the docs to get it up to date with main and merge this 👍 |
Fixes: #83
Signed-off-by: Anton Yip Anton_Yip@hotmail.com