Lesson 5 deploying in hardhat network #6263
Answered
by
Nlferu
tejanagendramolleti
asked this question in
Q&A
-
I am trying to deploy deploy.js in hardhat by using sepolia network. it is showing me error like this
hardhat_config.js=>
.env file =>
|
Beta Was this translation helpful? Give feedback.
Answered by
Nlferu
Nov 4, 2023
Replies: 1 comment 4 replies
-
Hello @tejanagendramolleti I think the problem is with your Below you can find my fix: 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,
},
sepolia:{},
}
}; |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tejanagendramolleti
You have to remove empty
sepolia:{}
from your config...Here is corrected code: