ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
889 stars 131 forks source link

`cls.compiler_manager.registered_compilers['.sol'].get_version_map(source_paths)` shows `.vy` files #880

Closed sabotagebeats closed 2 years ago

sabotagebeats commented 2 years ago

Environment information

$ cat ape-config.yaml hardhat: fork: ethereum: mainnet: upstream_provider: alchemy

meta: authors: [sabotage] license: MIT description: "test token" keywords: [hello, world] links: {'apeworx.io':'https://apeworx.io'}(apeworx)

What went wrong?

Please include information like:

How can it be fixed?

not sure

fubuloubu commented 2 years ago

So that is calling out to this file: https://github.com/ApeWorX/ape-solidity/blob/main/ape_solidity/compiler.py#L362

I am not sure what source_paths is and whether it contains the Vyper file, I don't think it has any particular filtering for when an unsupported file extension is passed through the argument.

sabotagebeats commented 2 years ago

closing as this is not a bug in ape.