Quickstart procedure fails
Opened this issue · 1 comments
mfw78 commented
When following the quickstart guidance, the example fails as follows:
Launching 'ganache-cli --chainId 1 --fork http://a.b.c.d:8545 --port 8545 --hardfork istanbul'...
Brownie environment is ready.
>>> from ape_safe import ApeSafe
>>> safe = ApeSafe('safeaddress.eth')
>>> dai = safe.contract('0x6B175474E89094C44Da98b954EedeAC495271d0F')
File "<console>", line 1, in <module>
File "ape_safe.py", line 83, in contract
return Contract(address, owner=self.account)
File "brownie/network/contract.py", line 854, in __init__
build, sources = _get_deployment(alias=address_or_alias)
File "brownie/network/state.py", line 603, in _get_deployment
raise BrownieEnvironmentError("Functionality not available in local environment") from None
BrownieEnvironmentError: Functionality not available in local environment
>>> quit()
penandlim commented
You probably want to enable autofetch in the configs
https://eth-brownie.readthedocs.io/en/stable/config.html#autofetch_sources
echo -e "autofetch_sources: true" >> ~/brownie-config.yaml