smartcontractkit / full-blockchain-solidity-course-py

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

eth not found on rinkeby #1570

Open sam445uutg opened 2 years ago

sam445uutg commented 2 years ago

C:\Users\HP\OneDrive\Desktop\lottery-smart-contract>brownie run scripts/deploy_lottery.py --network rinkeby INFO: Could not find files for the given pattern(s). Brownie v1.19.0 - Python development framework for Ethereum

LotterySmartContractProject is the active project.

Running 'scripts\deploy_lottery.py::main'... File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie_cli\run.py", line 51, in main return_value, frame = run( File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\scripts.py", line 110, in run
return_value = f_locals[method_name](*args, **kwargs) File ".\scripts\deploy_lottery.py", line 34, in main deploy_lottery() File ".\scripts\deploy_lottery.py", line 11, in deploy_lottery smart_lottery.deploy(get_contract("eth_usd"), File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 542, in call args, tx = _get_tx(None, args) File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 1954, in _get_tx tx["from"] = accounts.at(tx["from"], force=True) File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\account.py", line 244, in at
address = _resolve_address(address) File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\web3.py", line 195, in _resolve_address return to_address(domain) File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\convert\main.py", line 43, in to_address
return str(EthAddress(value)) File "C:\Users\HP.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\convert\datatypes.py", line 213, in new raise ValueError(f"'{value}' is not a valid ETH address") from None ValueError: '0x94870a14597c129b5b460401dc9ee87c053955fc0a89294ffa2b599dd198462a' is not a valid ETH address

allawitten commented 2 years ago

It says that the provided address is not a valid ETH address and since it is 64 character long it is probably your private key instead of your public key which should be 40 character long.