Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2) #6103
-
Please help for resolving this issue PS C:\Users\Jatin\ether-simple-storage> node deploy.js this is my solidity code contract SimpleStorage {
} this is my hardhat config- /** @type import('hardhat/config').HardhatUserConfig */ this is deploy.js const fs = require("fs-extra"); async function main() {
} catch (error) { main() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you are using Ganache Application for your network connection. Please make sure ganache app is running while you are are trying to deploy... and you have to updae your You can also use ganache in terminal... |
Beta Was this translation helpful? Give feedback.
I think you are using Ganache Application for your network connection. Please make sure ganache app is running while you are are trying to deploy... and you have to updae your
private key
in your code for ganache network connection whenever you closed Ganache. The private keys provided by ganache are not permanent. Once you closed the Ganache Application the private keys become invalid.... Ganache provides new private keys everytime you relaunch the ganache.You can also use ganache in terminal...
In a new terminal type :
ganache
and hit enter. This will run ganache server in your terminal. Here you will get some accounts and private keys for development. You can use these private keys al …