Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Deploying on rinkeby network #8

Open
Ya-Sin150 opened this issue Jan 2, 2022 · 2 comments
Open

Deploying on rinkeby network #8

Ya-Sin150 opened this issue Jan 2, 2022 · 2 comments

Comments

@Ya-Sin150
Copy link

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
Copy link

Dcamy commented Jan 9, 2022

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

@Usmaniatech
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants