Open DorianDaSilva opened 2 years ago
I deleted Ganache-Local from the variables and networks to run the same code using LOCAL_BLOCKCHAIN_ENVIRONMENTS including only "development" but now I run into a different error.
ConnectionError: Already connected to network 'development'
Can't seem to get around this one, looks lik I won't be able to work with ganache ui or finish the lesson.
Hi! I am taking the same course as you; I have no idea what is going on, but mi helpful.scripts.py is like yours, except that I don´t have the line:
network.connect(LOCAL_BLOCKCHAIN_ENVIRONMENTS)
And it works. Can you try to comment that line and see what happens? (at least maybe the error is different...)
Hi, I have been following along the course and managed to fix my previous issues but now I run into this error
TypeError: unhashable type: 'list'
when runningbrownie run scripts/deploy.py --network ganache-local
This error happened after we start cleaning the code using LOCAL_BLOCKCHAIN_ENVIRONMENT and Ganache UI. I have been searching online for the past 2 days for a fix but so far no luck.
Not sure what list is causing the issue, below is what the powershell returns when running the cmd line
File "C:\Users\doria\AppData\Roaming\Python\Python310\site-packages\brownie\project\scripts.py", line 149, in _import_from_path _import_cache[import_str] = importlib.import_module(import_str) File "C:\Program, line line, in in return _bootstrap._gcd_import(name[level:], package, level) File "<frozen, line line, in in File "<frozen, line line, in in File "<frozen, line line, in in File "<frozen, line line, in in File "<frozen, line line, in in File "<frozen, line line, in in File ".\scripts\deploy.py", line 2, in
from scripts.helpful_scripts import (
File ".\scripts\helpful_scripts.py", line 8, in
network.connect(LOCAL_BLOCKCHAIN_ENVIRONMENTS)
File "C:\Users\doria\AppData\Roaming\Python\Python310\site-packages\brownie\network\main.py", line 31, in connect
active = CONFIG.set_active_network(network)
File "C:\Users\doria\AppData\Roaming\Python\Python310\site-packages\brownie_config.py", line 76, in set_activenetwork
network = self.networks[id].copy()
TypeError: unhashable type: 'list'
Below are my codes for deploy.py, helpful_scripts.py, brownie-config and .env
DEPLOY.PY
HELPFUL_SCRIPTS.PY
BROWNIE-CONFIG
.ENV FILE
AND MOCKV3AGGREGATOR IN CASE IT IS NEEDED (Full code since import isn't working)