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