You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ternary operator r = true ? g : f;, which involves function types, fails to generate IR, causing Slither to crash.
Code example to reproduce the issue:
contractC {
function f() public {
}
function g() public {
}
function() r =true? g : f;
}
Version:
0.11.0
Relevant log output:
ERROR:SlitherSolcParsing:
Failed to generate IR for C.slitherConstructorVariables. Please open an issue https://github.com/crytic/slither/issues.
C.slitherConstructorVariables (a.sol#1-10):
r = iftruethen g else f
Traceback (most recent call last):
...
slither.slithir.exceptions.SlithIRError: Ternary operator are not convertible to SlithIR iftruethen g else f
ERROR:root:Error:
ERROR:root:Ternary operator are not convertible to SlithIR iftruethen g else f
ERROR:root:Please report an issue to https://github.com/crytic/slither/issues
The text was updated successfully, but these errors were encountered:
Describe the issue:
The ternary operator
r = true ? g : f;
, which involves function types, fails to generate IR, causing Slither to crash.Code example to reproduce the issue:
Version:
0.11.0
Relevant log output:
The text was updated successfully, but these errors were encountered: