Skip to content

Lesson 5 deploying in hardhat network #6263

Answered by Nlferu
tejanagendramolleti asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tejanagendramolleti

You have to remove empty sepolia:{} from your config...

Here is corrected code:

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

/** @type import('hardhat/config').HardhatUserConfig */

const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL
const PRIVATE_KEY = process.env.PRIVATE_KEY 
module.exports = {
  solidity: "0.8.8",
  defaultNetwork:"hardhat", 
  networks:{
    sepolia:{
      url:SEPOLIA_RPC_URL, //------>>> here is my fix
      accounts:[PRIVATE_KEY],
      chainId:11155111,

    },
   // ---> removal of "sepolia:{}"
  }
};

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tejanagendramolleti
Comment options

@Nlferu
Comment options

Answer selected by tejanagendramolleti
@tejanagendramolleti
Comment options

@Nlferu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants