[Bug]: Error in --etherscan-only-bytecode
- Dominant language
- Python
- Stars
- 6.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the issue:
I want to process bytecode, not source code, but
slither 0x7F37f78cBD74481E593F9C737776F7113d76B315 --etherscan-only-bytecode
```
File "/usr/local/lib/python3.11/site-packages/slither/slither.py", line 112, in __init__
parser.parse_top_level_from_loaded_json(ast, path)
File "/usr/local/lib/python3.11/site-packages/slither/solc_parsing/slither_compilation_unit_solc.py", line 206, in parse_top_level_from_loaded_json
if data_loaded[self.get_key()] == "root":
~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'name'
```
### Code example to reproduce the issue:
slither 0x7F37f78cBD74481E593F9C737776F7113d76B315 --etherscan-only-bytecode
### Version:
newest
### Relevant log output:
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.