I am setting up hardhat in Linux. I have set up the react app first using these commands.
npx create-react-app react-dapp
cd react-dapp
Then I have installed some hardhat dependencies using this command.
npm install ethers hardhat @nomiclabs/hardhat-waffle \
ethereum-waffle chai \
@nomiclabs/hardhat-ether
This all done correctly. Then I have created the hardhat configs and setup.
npx hardhat
Then I have edited the hardhat.config.js file. I have places this.
module.exports = {
solidity: "0.8.4",
paths: {
artifacts: './src/artifacts',
},
networks: {
hardhat: {
chainId: 1337
}
} }; After that I have created the node.
npx hardhat node
I got this error:
Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported