Lesson 6: IndexError @ 5:42:02 timestamp #345
-
When I run brownie run scripts/deploy.py --networks ganache-local I get the following: Here is my deploy.py: MY helpful_scripts.py: ... and the command to add the ganache-local network to the network list: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hello @ArcusConsulting you had added the ganache-local to your brownie networks but you didn't add the number of accounts, so brownie is complaining with index out of range because there aren't any accounts. So use:
Hope this info might be helpful, best regards. Note: remember to delete the network with |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hello @ArcusConsulting you had added the ganache-local to your brownie networks but you didn't add the number of accounts, so brownie is complaining with index out of range because there aren't any accounts. So use:
brownie networks add Ethereum ganache-local host=yourhost chainid=theid accounts=10
.Hope this info might be helpful, best regards.
Note: remember to delete the network with
brownie networks delete ganache-local
before adding it again.