Replies: 4 comments 13 replies
-
Great explanation, thanks!! |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for this solution. Made my life easier... |
Beta Was this translation helpful? Give feedback.
-
I'm guessing all of you are using WSL environment. When we install ganache, without using yarn or npm, it gets install on windows or mc and not on linux. Thus the problem |
Beta Was this translation helpful? Give feedback.
-
I have found an easier solution, actually its written in github repo of this course, when you open lesson:5 its written at the bottom. Run
Change Server settings in Ganache Change Host Name to vEthernet (WSL) You will see RPC endpoint changes, paste the new RPC endpoint in ".env" file |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, if you have come across the same error shown above while deploying the contract then try doing the following steps.
Step 1: install ganache through npm


npm i ganache
and make sure it's visible in package.jsonStep 2: open 2 separate terminals where you can deploy the contract in the first terminal and run the ganache server on the other terminal.
Step 3: run the ganache server on the second terminal
yarn run ganache
Step 4: Copy one of the Private-Key provided by the ganache server and paste it into your wallet, also make sure the RPC that is running on the server should match with the provider you wrote in the code and save your code.
Step 5: Without shutting down the ganache server deploy your contract.
I hope this solution helps you.
Beta Was this translation helpful? Give feedback.
All reactions