Closed e-roy closed 2 years ago
It is expected behavior, hardhat network is an in memory network only and has no rpc endpoint available,
Thank you for the reply. Interesting, I thought localhost would have the same result.
I changed my hardhat.config file to this
const defaultNetwork = "localhost";
module.exports = {
solidity: "0.8.10",
defaultNetwork,
networks: {
localhost: {
chainId: 31337,
},
}
}
and got the results I was looking for while I'm running a hardhat node. I'll have to look into this more to get a better understanding 😀
Thank you for maintaining such an awesome plugin! I'm using it in this project I'm building https://www.npmjs.com/package/create-web3
I'm trying to save to the deployments folder with the hardhat network. If I use this in my hardhat.config file, nothing is saved to the deployments folder
If I changed defaultNetwork to localhost
then a localhost folder is created.
Is this the expected behavior? And how can I save creating a hardhat folder?