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
Since Solidity version 0.6.0, structs and enums may be declared outside the contract. I have such structs declaration in my project and Slither fails with the following error
ERROR:root:Traceback (most recent call last):
File "/home/igor/.local/lib/python3.8/site-packages/slither/__main__.py", line 604, in main_impl
(slither_instances, results_detectors, results_printers, number_contracts) = process_all(filename, args,
File "/home/igor/.local/lib/python3.8/site-packages/slither/__main__.py", line 67, in process_all
(slither, current_results_detectors, current_results_printers, current_analyzed_count) = process_single(
File "/home/igor/.local/lib/python3.8/site-packages/slither/__main__.py", line 53, in process_single
slither = Slither(target,
File "/home/igor/.local/lib/python3.8/site-packages/slither/slither.py", line 66, in __init__
self._parse_contracts_from_loaded_json(ast, path)
File "/home/igor/.local/lib/python3.8/site-packages/slither/solc_parsing/slitherSolc.py", line 105, in _parse_contracts_from_loaded_json
assert contract_data[self.get_key()] in ['ContractDefinition', 'PragmaDirective', 'ImportDirective']
AssertionError
I suppose there should be smth like 'StructDefinition' and 'EnumDefinition' in the list at the end of the traceback.
The text was updated successfully, but these errors were encountered:
Hello!
Since Solidity version 0.6.0, structs and enums may be declared outside the contract. I have such structs declaration in my project and Slither fails with the following error
I suppose there should be smth like
'StructDefinition'
and'EnumDefinition'
in the list at the end of the traceback.The text was updated successfully, but these errors were encountered: