-
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
[Bug]: Ternary operation not handled bytes #1371
Comments
Ah ok, turns out it was a
Refactoring to a standard if/else block works as a workaround for now. After fixing that I hit another ternary issue. The problematic expression was: return myContract.myMethod{value: address1 == address2 ? myUint : 0}(/* irrelevant params */); Pulling the ternary out of the braces and assigning to an intermediate
|
I wasn't able to replicate an error on |
The repo is now public, so can link to the full codebase: here is the specific line. That repo has changed a bit since I originally tried running slither against it in september, but |
Describe the issue:
Similar to #1198 and #1153, but seems those are for
string
andNone
respectively, whereas here the issue isbytes
so figured I'd open a separate issue. Full stack trace below. Unfortunately repo is private so still tracking down exactly where this happens / trying to find a workaroundCode example to reproduce the issue:
TBD
Version:
0.8.3
Relevant log output:
The text was updated successfully, but these errors were encountered: