Open kalebima opened 1 year ago
@BowTiedDevil have you heard of any of your readers running into this issue? I originally ran into it when I was going through one of your older posts to set up Brownie / test out interacting with the console
Also @iamdefinitelyahuman I saw you were the owner of py-solc-x
too, would you be able to take a look when you have a chance?
Environment information
brownie
Version: v1.19.2ganache-cli
Version: ganache v7.5.0 (@ganache/cli: 0.6.0, @ganache/core: 0.6.0)solc
Version: 0.8.17+commit.8df45f5f.Darwin.appleclangWhat was wrong?
I've been trying to get Brownie working on my M1 Mac, and I initially traced it back to the
py-solc-x
library that Brownie relies on forsolc
. Following this post I installedsolc
from Homebrew and created a symlink forpy-solc-x
to reference:This solution works when I define my
solc
version inbrownie-config.yaml
, i.e. I canbrownie compile
the standard token mix without errors. The problem is that the Brownie console isn't picking up on the installedsolc
version, even after I specify viacompiler. set_solc_version ("0.8.17")
. Instead it ignores this and tries to install an older version ofsolc
using a binary that isn't compatible with M1 Macs when I callContract.from_explorer()
. See this screenshot showing both cases (console first, and then compiling token mix afterwards):