smartcontractkit / full-blockchain-solidity-course-py

Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
MIT License
10.76k stars 2.9k forks source link

Lesson 6: Brownie Fund me, 5:37:00 #1642

Open imfc12 opened 2 years ago

imfc12 commented 2 years ago

When deploying scripts 'brownie run scripts/deploy.py' for my BrownieFundMe project, i get a KeyError: 'network' message. I have checked over the code and there are no typos etc. Please help, thanks

Brownie v1.19.0 - Python development framework for Ethereum

BrownieFundMeProject is the active project.

Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...

Running 'scripts/deploy.py::main'... The active network is development Deploying Mocks... Transaction sent: 0xd6ef5498de8ac6da0e96cddae52d5e2db1856d3801d4649a2ec893658189c18d Gas price: 0.0 gwei Gas limit: 12000000 Nonce: 0 MockV3Aggregator.constructor confirmed Block: 1 Gas used: 430695 (3.59%) MockV3Aggregator deployed at: 0x3194cBDC3dbcd3E11a07892e7bA5c3394048Cc87

Mocks Deployed! File "brownie/_cli/run.py", line 51, in main return_value, frame = run( File "brownie/project/scripts.py", line 110, in run return_value = f_locals[method_name](*args, **kwargs) File "./scripts/deploy.py", line 24, in main deploy_fund_me() File "./scripts/deploy.py", line 18, in deploy_fund_me publish_source=config["network"][network.show_active()].get("verify"), KeyError: 'network' Terminating local RPC client...

MuhammadAwais0 commented 2 years ago

its "networks" in brownie-config.yaml.