Lesson 12: Connecting WSL2 to Ganache #289
-
Hi, I'm trying to deploy the box contract at the start of lesson 12 and am getting the error below. The contract deploys on rinkeby so I think it might be an issue connecting WSL2 to Ganache. Has anyone come across this problem? christian@DESKTOP-PN8H8CK:/mnt/c/Users/chris/Dropbox/00_CODE/upgrades$ brownie run scripts/deploy_box.py UpgradesProject is the active project. Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Hi @ChristianG77 it seems it's trying to access to windows brownie config, I have some recommendations for you.
Tip: you can access to the home directory via console typing |
Beta Was this translation helpful? Give feedback.
-
Hi @cromewar thanks for your response. So I installed ganache-cli on WSL and received the below. Are any of these errors a significant issue? I have my ganache server settings as per the below. Then I took a copy of the code folder and placed it to \wsl$\Ubuntu-20.04\home\christian.brownie\00_CODE\upgrades. I don't need to delete the folder on Windows, correct? I deleted the build, compiled and ran run scripts/deploy_box.py and run scripts/deploy_boxy.py --network rinkeby and received the following. christian@DESKTOP-PN8H8CK:~/.brownie/00_CODE/upgrades$ brownie compile Compiling contracts...
Project has been compiled. Build artifacts saved at /home/christian/.brownie/00_CODE/upgrades/build/contracts christian@DESKTOP-PN8H8CK:~/.brownie/00_CODE/upgrades$ brownie run scripts/deploy_box.py UpgradesProject is the active project. Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'... UpgradesProject is the active project. |
Beta Was this translation helpful? Give feedback.
Hi @ChristianG77 it seems it's trying to access to windows brownie config, I have some recommendations for you.
npm install -g ganache-cli
.brownie
folder on the home path:/home/yourUser/.brownie/
Tip: you can access to the home directory via console typing
cd