We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If slither is runned with slither --print evm contract.sol where contract.sol is an abstract contract, it will fail with the following error:
slither --print evm contract.sol
➜ slither --print evm contract.sol File "/Users/dm/Projects/slither/slither/__main__.py", line 143, in _process printer_results = slither.run_printers() ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/dm/Projects/slither/slither/slither.py", line 300, in run_printers return [p.output(self._crytic_compile.target).data for p in self._printers] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/dm/Projects/slither/slither/printers/summary/evm.py", line 78, in output evm_info = _extract_evm_info(self.slither) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/dm/Projects/slither/slither/printers/summary/evm.py", line 30, in _extract_evm_info cfg = CFG(contract_bytecode_runtime) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/dm/Projects/slither/env/lib/python3.12/site-packages/evm_cfg_builder/cfg/__init__.py", line 96, in __init__ self.create_functions() File "/Users/dm/Projects/slither/env/lib/python3.12/site-packages/evm_cfg_builder/cfg/__init__.py", line 183, in create_functions self.compute_functions(self._basic_blocks[0], True) ~~~~~~~~~~~~~~~~~~^^^
abstract contract Ownable {}
0.10.2
No response
The text was updated successfully, but these errors were encountered:
Fix #2430
9413e1e
EVM printer now correctly detects missing bytecode in contract and don't try to analyze them.
Merge pull request #2431 from crytic/fix/evm-printer
0fad849
No branches or pull requests
Describe the issue:
If slither is runned with
slither --print evm contract.sol
where contract.sol is an abstract contract, it will fail with the following error:Code example to reproduce the issue:
abstract contract Ownable {}
Version:
0.10.2
Relevant log output:
No response
The text was updated successfully, but these errors were encountered: