Closed geeky01adarsh closed 1 year ago
@geeky01adarsh That depends on what solidity version you have your MockV3Aggegator.sol is on. If you are on version ^0.6.0
Then you can update your hardhat.config.js version greater than 0.6.0 as below:
Same goes for all other versions. Be it v5.0, v6.0, v7.0 or v8.0.
@geeky01adarsh Here is the MockV3Aggregator.sol
for version 6 LINK
@alymurtazamemon - Same goes here as well. I provided the solution not asked any questions here.
@sheoran0917 My mistake I wanted to tag @geeky01adarsh!
No Worries @alymurtazamemon. I figured that out after commenting. :-) You can close this one as well as this is also not a course issue.
Thank you guys for the help!!! I don't why it didn't work back then, extremely sorry for pointing out something wrong. I am closing this issue now.
Lesson
Lesson 7
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
https://youtu.be/gyMwXuJrbJQ?t=38446
Operating System
Windows
Describe the bug
Hi, I was trying to create the mock contract using this line of code
but it threw an error
And after debugging and going through the GitHub repo, I found that the above lines in MockV3Aggregator.sol must be replaced with the following lines
Please update it.