-
Notifications
You must be signed in to change notification settings - Fork 979
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
'NoneType' object has no attribute 'type' #120
Comments
Hi @mrice32 , thank you for this report! The issue is that Solidity allows implicit conversion from uint256 to int256 on signature lookup (in this case it does |
Thank you! |
Why is this issue closed ? The error still persisted on the latest version also. |
Hi @Bereket-G, can you give more details? Running slither 0.8.0 on the example above does not lead to any issue on my local test. |
Yea, it's true, The error still persisted on 0.8.2. I cant find any clue in the error. Here is the error message:
|
Hi @amber0515, your issue seems related to a specific detector, for a temporary fix can you try run slither with |
I just know what's wrong with this error. I make the contract upgradeable by use |
Is there any news about this? Slither 0.8.3 breaks with this error on all projects I could find for testing ... |
Still facing this issue. Doesn't seem to be fixed yet. |
@umair-mirza this is a general python error so it could be caused by an assortment of errors in the code. Could you share a codebase/ solidity snippet that causes the issue? |
@itinance @umair-mirza I also used to get this problem on Slither 0.8.3 but it seems to be fixed in 0.9.0. |
@b1acKr0se you're a life saver. Thank you so much for helping out. Upgrading it worked for me. |
@0xalpharush apparently there's a bug in 0.8.3. upgrading it like @b1acKr0se suggested worked! |
We're seeing an undefined property-related crash in our testing. We began using chained calls to Open Zeppelin's
SafeMath
library more heavily, and we started seeing this crash. I wasn't able to figure out exactly what caused the crash other than a chain of calls along with certain overloaded functions being declared. The following is Slither's output:This is the minified example contract that I was able to produce (I copied a portion of the SafeMath library into the contract to remove the dependency):
The curious part is that if I remove the
uint
version of themul()
function, Slither stops crashing. Also, if I remove any of the calls in the chain (in1.mul(1 ether).div(in2).sub(1 ether);
), Slither stops crashing. Please let me know if you need any other information or have trouble reproducing this on your end.The text was updated successfully, but these errors were encountered: