PatrickAlphaC / brownie_fund_me

26 stars 64 forks source link

I can't verify the source code #62

Closed Nachito02 closed 1 year ago

Nachito02 commented 1 year ago

Running 'scripts/deploy.py::main'... Transaction sent: 0x3a8c060bda2655fb6ee2078aa6be229e2e36631c2136dbcfa83f23d36101d598 Gas price: 1.445e-06 gwei Gas limit: 428686 Nonce: 86 FundMe.constructor confirmed Block: 4230262 Gas used: 389715 (90.91%) FundMe deployed at: 0x51a25a0647Ad77141bC304cB1690C986D60431f4

File "/usr/local/lib/python3.10/dist-packages/brownie/_cli/run.py", line 51, in main return_value, frame = run( File "/usr/local/lib/python3.10/dist-packages/brownie/project/scripts.py", line 110, in run return_value = f_locals[method_name](*args, **kwargs) File "./scripts/deploy.py", line 26, in main deploy_found_me() File "./scripts/deploy.py", line 16, in deploy_found_me found_me = FundMe.deploy( File "/usr/local/lib/python3.10/dist-packages/brownie/network/contract.py", line 549, in call return tx["from"].deploy( File "/usr/local/lib/python3.10/dist-packages/brownie/network/account.py", line 557, in deploy contract.publish_source(deployed_contract, silent=silent) File "/usr/local/lib/python3.10/dist-packages/brownie/network/contract.py", line 408, in publish_source data = response.json() File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) JSONDecodeError: Expecting value: line 3 column 1 (char 4) root@DESKTOP-P9HCKNP:~/brownie_found_me#

def deploy_found_me():
    if network.show_active() != "development":
        price_feed_address = config["networks"][network.show_active()][
            "eth_usd_price_feed"
        ]
    else:
        # price feed falso
        deploy_mocks()
        price_feed_address = MockV3Aggregator[-1].address
    account = getAccount()
    found_me = FundMe.deploy(
        price_feed_address,
        {"from": account},
        publish_source=config["networks"][network.show_active()].get("verify"),
    )
    print(f"Contract deployed to {found_me}")
PatrickAlphaC commented 1 year ago

Hello, I will be archiving this project soon. Please check out the foundry full course until we make a new python course.

https://github.com/Cyfrin/foundry-full-course-f23