Lesson 9: Cannot read properties of undefined(reading 'entranceFee') #1511
-
I've looked through all the code , couldn't find issue with any of the "entranceFee " methods. Am I missing line of code or is it export related or what ? Terminal: hh deploy Result: 01-deploy-raffle.js
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Show helper hardhat config |
Beta Was this translation helpful? Give feedback.
-
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @paulcoffee85
const { network, ethers } = require("hardhat")
=> You can't call ethers functions without importing ethersconst chainId = network.config.chainId
instead ofconst chainId = network.config.chainId["VRFCoordinatorV2Mock"]
=>
"VRFCoordinatorV2Mock"
is not a networkHope this helps!