PatrickAlphaC / brownie_simple_storage

25 stars 32 forks source link

Deploying on rinkeby network #8

Open Ya-Sin150 opened 2 years ago

Ya-Sin150 commented 2 years ago

I am trying to deploy my script on the rinkeby network but it seems like there is a bug somewhere and i would like to find out what it is.

After typing in 'brownie run scripts/deploy.py --network rinkeby' in my terminal, I am getting the error below:

Running '\Users\sahar\OneDrive\Documents\Python\Blockchain\brownie_simple_storage\scripts\deploy.py::main'... File "C:\Users\sahar\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\_cli\run.py", line 50, in main return_value, frame = run( File "C:\Users\sahar\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\project\scripts.py", line 103, in run return_value = f_locals[method_name](*args, **kwargs) File "\Users\sahar\OneDrive\Documents\Python\Blockchain\brownie_simple_storage\scripts\deploy.py", line 23, in main deploy_simple_storage() File "\Users\sahar\OneDrive\Documents\Python\Blockchain\brownie_simple_storage\scripts\deploy.py", line 6, in deploy_simple_storage simple_storage = SimpleStorage.deploy({"from": accounts}) File "C:\Users\sahar\.local\pipx\venvs\eth-brownie\lib\site-packages\brownie\network\contract.py", line 524, in __call__ return tx["from"].deploy(

AttributeError: 'Accounts' object has no attribute 'deploy'

Dcamy commented 2 years ago

@Ya-Sin150 maybe add your code, that last line is the key to the issue

Usmaniatech commented 2 years ago

change deploy_simple_storage simple_storage = SimpleStorage.deploy({"from": accounts}) to simple_storage = SimpleStorage.deploy({"from": accounts})