full-blockchain-solidity-course-py icon indicating copy to clipboard operation
full-blockchain-solidity-course-py copied to clipboard

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

Open imfc12 opened this issue 2 years ago • 1 comments

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...

imfc12 avatar Aug 14 '22 06:08 imfc12

its "networks" in brownie-config.yaml.

MuhammadAwais0 avatar Aug 16 '22 11:08 MuhammadAwais0