crytic / crytic/slither

[Bug]: Error in --etherscan-only-bytecode

Open
#1,801 1 comment 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.