VSC not connecting to Ganache or the offline network #282
-
I have ganache open this whole time, but when I try to compile, I get this error:
My script in
How can I get it to finally compile? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try going to Then using that info for your metamask. If your metamask cant connect to it, your contract probably cant ether. You don't really need to use ganache with hardhat. It has a built in backend. |
Beta Was this translation helpful? Give feedback.
Try going to
settings
, thenserver
and changing it toHostname: 192.xxx.x.xxx
,Port numer: 8545
, andchain id: 1337
Then using that info for your metamask.
If your metamask cant connect to it, your contract probably cant ether.
You don't really need to use ganache with hardhat. It has a built in backend.