You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when compiling, generating the ABIs does not respect the solc version set in brownie-config.yaml:
compiler:
solc:
version: 0.6.12
$ brownie compile --all
Brownie v1.16.2 - Python development framework for Ethereum
Compiling contracts...
Solc version: 0.6.12
Optimizer: Enabled Runs: 200
EVM Version: Istanbul
Generating build data...
[...]
Generating interface ABIs...
CompilerError: solc returned the following errors:
ParserError: Source file requires different compiler version (current compiler is 0.8.4+commit.c7e474f2.Darwin.appleclang) - note that nightly builds are considered to be strictly less than the released version
--> interfaces/erc20/IERC20.sol:3:1:
|
3 | pragma solidity ^0.6.0;
| ^^^^^^^^^^^^^^^^^^^^^^^
still digging through the code, but i believe .get_abi needs to check the config file or get passed a solc version before setting solc_sources based on the contract_sources dict.
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: 1.16.2ganache-cli
Version: 6.12.2solc
Version: 0.6.12What was wrong?
when compiling, generating the ABIs does not respect the
solc
version set inbrownie-config.yaml
:via https://ethereum.stackexchange.com/a/102669/3426
How can it be fixed?
still digging through the code, but i believe
.get_abi
needs to check the config file or get passed a solc version before settingsolc_sources
based on thecontract_sources
dict.The text was updated successfully, but these errors were encountered: