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

CompilationUnit object has no attribute contracts_names #2619

Open
Silur opened this issue Feb 22, 2023 · 0 comments
Open

CompilationUnit object has no attribute contracts_names #2619

Silur opened this issue Feb 22, 2023 · 0 comments
Labels

Comments

@Silur
Copy link

Silur commented Feb 22, 2023

Running manticore-verifier on a template "hello world" hardhat project fails with the following trace every time:

Traceback (most recent call last):
  File "/usr/local/bin/manticore-verifier", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/manticore/ethereum/verifier.py", line 498, in main
    return manticore_verifier(
  File "/usr/local/lib/python3.8/dist-packages/manticore/ethereum/verifier.py", line 157, in manticore_verifier
    contract_account = m.solidity_create_contract(
  File "/usr/local/lib/python3.8/dist-packages/manticore/ethereum/manticore.py", line 585, in solidity_create_contract
    compile_results = self._compile(
  File "/usr/local/lib/python3.8/dist-packages/manticore/ethereum/manticore.py", line 359, in _compile
    compilation_result = ManticoreEVM._compile_through_crytic_compile(
  File "/usr/local/lib/python3.8/dist-packages/manticore/ethereum/manticore.py", line 287, in _compile_through_crytic_compile
    if contract_name not in compilation_unit.contracts_names:
AttributeError: 'CompilationUnit' object has no attribute 'contracts_names'

npx hardhat compile works and generates the artifacts successfully

Hardhat version: 2.12.7
Manticore version: Docker 60b76c160580

@Silur Silur added the bug label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant