1

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'

BAJPAIMANN
  • 19
  • 3
  • Taking a very wild guess, maybe put the --network flag immediately after "run", so that the modified command looks like: yarn hardhat run --network goerli scripts/deploy.js – Shariq Hasan Khan Sep 17 '22 at 15:41

0 Answers0