Lesson 6: HH8 Error #3105
Replies: 5 comments 9 replies
-
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
const GOERLI_RPC_URL = process.env.GOERLI_RPC_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
module.exports = {
defaultNetwork: "hardhat",
networks: {
goerli: {
url: GOERLI_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 5,
},
},
solidity: "0.8.9",
}; |
Beta Was this translation helpful? Give feedback.
-
@SandyTampaBay This is a RPC URL issue, you should make sure it is correct and console.log it also in hardhat.config.js file to see the result |
Beta Was this translation helpful? Give feedback.
-
@SandyTampaBay Please push to GitHub. I will look into it :) |
Beta Was this translation helpful? Give feedback.
-
Thank you @krakxn here it is. i accidentally left a portion of hardhat.config.js commented out right under module.exports. it seems that if i comment in any portion of that code i get the error i mentioned above. https://github.com/SandyTampaBay/Hardhat-Simple-Storage-FCC-STB.git |
Beta Was this translation helpful? Give feedback.
-
@SandyTampaBay Now it is running, check this; I am going to push on your repo, check it there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i'm at the 8:50 mark in the course and I'm attempting to test deploy to the Goerli testnet. After using command "yarn hardhat run scripts/deploy.js --network goerli" in my terminal, I get the following error.
**
Error HH8: There's one or more errors in your config file:
To learn more about Hardhat's configuration, please go to https://hardhat.org/config/
**
I went over the lesson involving the hardhat config network a few times but can't seem to figure out whats happening. My best guess is my hardhat config network installed @nomicfoundation/hardhat-toolbox but in the lesson has @nomiclabs/hardhat-waffle. hardhat waffle isn't downloaded in my package.json file. Everything in the lesson was working until i listed the default network, url, accounts etc.
thanks for your help! below i'll list what i have in my hardhat.config.js
Beta Was this translation helpful? Give feedback.
All reactions