Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: the JSON object must be str, bytes or bytearray, not 'list' #768

Closed
abialy opened this issue Jan 13, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@abialy
Copy link

abialy commented Jan 13, 2021

Latest slighter when trying to compile 0xbCDa9E0658f4eECF56A0bd099e6DBc0C91f6A8c2

File "/home/ethsec/.local/lib/python3.6/site-packages/slither/slither.py", line 76, in init
crytic_compile = CryticCompile(target, **kwargs)
File "/home/ethsec/.local/lib/python3.6/site-packages/crytic_compile/crytic_compile.py", line 137, in init
self._compile(**kwargs)
File "/home/ethsec/.local/lib/python3.6/site-packages/crytic_compile/crytic_compile.py", line 987, in _compile
self._platform.compile(self, **kwargs)
File "/home/ethsec/.local/lib/python3.6/site-packages/crytic_compile/platform/etherscan.py", line 263, in compile
crytic_compile.abis[contract_name] = json.loads(info["abi"])
File "/usr/lib/python3.6/json/init.py", line 348, in loads
'not {!r}'.format(s.class.name))
TypeError: the JSON object must be str, bytes or bytearray, not 'list'

@montyly
Copy link
Member

montyly commented Jan 21, 2021

Hi @abialy.

Thank you for reporting this. I think the issue is the missing support for solc 0.8.0 in etherscan. We are working on it (crytic/crytic-compile#146), and it should be available soon.

@montyly montyly added the bug Something isn't working label Jan 21, 2021
@montyly montyly mentioned this issue Apr 22, 2021
8 tasks
montyly added a commit to crytic/crytic-compile that referenced this issue Apr 22, 2021
Use solc function to support 0.8
Fix crytic/slither#768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants