lesson 6: Setting up Hardhat #6849
Replies: 2 comments
-
Hey, if it got answered and fixed, please help, I'm getting some error in the same TypeError: Cannot read properties of undefined (reading 'getContractFactory') import hre from "hardhat"; async function main() { // --- 4. Deploy the contract --- // Wait for deployment to be mined console.log( const storedValue = await simpleStorage.retrieve(); // Run the script |
Beta Was this translation helpful? Give feedback.
-
which version of hardhat are you using? if you are using v3.0.6 It won't work. Delete you not modules, change the version to v2.26.3. make sure this this installed: @nomicfoundation/hardhat-toolbox (you can find other plugins here: https://v2.hardhat.org/hardhat-runner/plugins) then do import { ethers } from hardhat; read the documentation on how you can continue from there: https://v2.hardhat.org/hardhat-runner/docs/getting-started#quick-start |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello guys, I am trying to set up hardhat but it is proving difficult.
from the documentation, I am meant to do this:
I did that but nothing happens:
is there a way around this?
Beta Was this translation helpful? Give feedback.
All reactions