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
I tried to run slither checks on Solidity code ^0.8.12 with new functionality over dynamic sized arrays - function concat (link) and faced with problems of running slither check
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/slither/__main__.py", line 744, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/usr/local/lib/python3.9/site-packages/slither/__main__.py", line 87, in process_all
) = process_single(compilation, args, detector_classes, printer_classes)
File "/usr/local/lib/python3.9/site-packages/slither/__main__.py", line 70, in process_single
slither = Slither(target, ast_format=ast, **vars(args))
File "/usr/local/lib/python3.9/site-packages/slither/slither.py", line 118, in __init__
parser.parse_contracts()
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 489, in parse_contracts
self._analyze_third_part(contracts_to_be_analyzed, libraries)
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 596, in _analyze_third_part
self._analyze_variables_modifiers_functions(contract)
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 669, in _analyze_variables_modifiers_functions
contract.analyze_content_functions()
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/declarations/contract.py", line 404, in analyze_content_functions
function_parser.analyze_content()
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/declarations/function.py", line 310, in analyze_content
self._filter_ternary()
File "/usr/local/lib/python3.9/site-packages/slither/solc_parsing/declarations/function.py", line 1346, in _filter_ternary
st = SplitTernaryExpression(node.expression)
File "/usr/local/lib/python3.9/site-packages/slither/utils/expression_manipulations.py", line 53, in __init__
self.copy_expression(expression, self.true_expression, self.false_expression)
File "/usr/local/lib/python3.9/site-packages/slither/utils/expression_manipulations.py", line 108, in copy_expression
self.copy_expression(
File "/usr/local/lib/python3.9/site-packages/slither/utils/expression_manipulations.py", line 120, in copy_expression
self.copy_expression(next_expr, true_expression.called, false_expression.called)
File "/usr/local/lib/python3.9/site-packages/slither/utils/expression_manipulations.py", line 91, in copy_expression
self.copy_expression(
File "/usr/local/lib/python3.9/site-packages/slither/utils/expression_manipulations.py", line 144, in copy_expression
raise SlitherException(
slither.exceptions.SlitherException: Ternary operation not handled string(<class 'slither.core.expressions.elementary_type_name_expression.ElementaryTypeNameExpression'>)
Error:
Ternary operation not handled string(<class 'slither.core.expressions.elementary_type_name_expression.ElementaryTypeNameExpression'>)
Please report an issue to https://github.com/crytic/slither/issues
error Command failed with exit code 255.
The text was updated successfully, but these errors were encountered:
Describe the issue:
I tried to run slither checks on Solidity code ^0.8.12 with new functionality over dynamic sized arrays - function
concat
(link) and faced with problems of running slither checkCode example to reproduce the issue:
Version:
0.8.3
Relevant log output:
The text was updated successfully, but these errors were encountered: