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
I think brownie's solidity compatibility may be broken for solidity version 0.8.0.
To reproduce, create a solidity contract and try to compile it with solc 0.8.0 via brownie compile. Here's a minimal contract I was able to reproduce with:
pragma solidity 0.8.0;
contract Testy {
address public testAddress;
constructor() public {}
}
when I try to run brownie compile --all, I get this error:
How can it be fixed?
By changing the solidity version to something else. For example, when I change the solidity version in the file to something like 0.6.0, it appears to compile without issue.
From my brief tinkering, it looks like 0.8.0 is the first version that this breaks (ie. it compiles fine on 0.7.6).
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: v1.12.2ganache-cli
Version: 6.12.1solc
Version: 0.8.0What was wrong?
I think brownie's solidity compatibility may be broken for solidity version 0.8.0.
To reproduce, create a solidity contract and try to compile it with solc 0.8.0 via
brownie compile
. Here's a minimal contract I was able to reproduce with:when I try to run
brownie compile --all
, I get this error:How can it be fixed?
By changing the solidity version to something else. For example, when I change the solidity version in the file to something like
0.6.0
, it appears to compile without issue.From my brief tinkering, it looks like 0.8.0 is the first version that this breaks (ie. it compiles fine on 0.7.6).
The text was updated successfully, but these errors were encountered: