What does the following error mean ERROR: UNKNOWN OPTION '--network'?

Viewed 20

WHEN I RUN THIS CODE:-

`require("@nomicfoundation/hardhat-toolbox");
require("dotnet").config();

/** @type import('hardhat/config').HardhatUserConfig */
const goerli_RPC_URL=process.env.Goerli_RPC_URL
const goerliPrivateKey=process.env.goerliPrivateKey
module.exports = {
  defaultNetwork:"hardhat",
  networks:{
    goerli:{
      url:goerli_RPC_URL,
      accounts:[goerliPrivateKey],
      chainId:5,
    },
  },
  solidity: "0.8.8",
};

NOT ACCEPTING THIS COMMAND "yarn hardhat run scripts/deploy.js --network goerli" SHOWING THE ERROR: UNKNOWN OPTION '--network'

0 Answers
Related