Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickstart procedure fails #24

Open
mfw78 opened this issue Dec 31, 2021 · 1 comment
Open

Quickstart procedure fails #24

mfw78 opened this issue Dec 31, 2021 · 1 comment

Comments

@mfw78
Copy link

mfw78 commented Dec 31, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants