PatrickAlphaC / brownie_fund_me

26 stars 64 forks source link

Key Error #55

Closed alexchenyu closed 1 year ago

alexchenyu commented 1 year ago

I always get the same error, and don't know why, I checked all the code, there is no error BrownieFundMeProject is the active project. File "C:\Users\Alex_Chen.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli__main__.py", line 64, in main importlib.import_module(f"brownie._cli.{cmd}").main() File "C:\Users\Alex_Chen.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli\run.py", line 45, in main network.connect(CONFIG.argv["network"]) File "C:\Users\Alex_Chen.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\main.py", line 31, in connect active = CONFIG.set_active_network(network) File "C:\Users\Alex_Chen.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_config.py", line 76, in set_activenetwork network = copy.deepcopy(self.networks[id]) KeyError: 'ganache-local'

PatrickAlphaC commented 1 year ago

Can you:

  1. Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-py
alexchenyu commented 1 year ago

Can you:

  1. Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-py

Thanks a lot for you reply, I forget to add ganache-local in brownie. Solved