Lesson 9 - ethers.getContract
vs deployments.get
in Raffle deployment script
#2580
-
Hi, I found we are getting the mock's address in a different way than previous lesson: // Previous lesson
const ethUsdAggregator = await deployments.get('MockV3Aggregator');
// Lesson 9
const vrfCoordinatorV2Mock = await ethers.getContract(
'VRFCoordinatorV2Mock'
); and when I try to get In both lessons, we deployed Why is Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
othaime-en
Sep 14, 2022
Replies: 1 comment 4 replies
-
@levblanc can you please share your lesson 9 code where you are trying get |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
levblanc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@levblanc can you please share your lesson 9 code where you are trying get
VRFCoordinatorV2Mock
I need context