error while executing deploy.js #6647
Replies: 2 comments
-
In this line "const provider = new ethers.providers.JsonRpcProvider" remove the ".providers" thing. Patrick did updated this in his repo |
Beta Was this translation helpful? Give feedback.
-
The error Here are a few steps you can take to troubleshoot this issue:
const provider = new ethers.providers.WebSocketProvider("ws://127.0.0.1:8545"); Make sure to replace the URL with the appropriate WebSocket URL for your local node.
If the issue persists after trying these steps, please provide more information about your setup, such as the tool you're using to run the local Ethereum node (e.g., Ganache, Hardhat, Truffle), and any relevant configuration details. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, am getting an error(Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.0) while executing the above code in deploy.js, please help
Beta Was this translation helpful? Give feedback.
All reactions