DeclarationError: Undeclared identifier (Lesson 4 : Fundme) #5175
-
Getting this error on this line of code The error indicates that "price" is not (or not yet) visible at this point. I searched for the reason but have not found it yet. I would appreciate if someone help me figure it out |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Mar 27, 2023
Replies: 1 comment
-
@Rabeet8 Can I see your both files? Either you have misspelt priceFeed here (, int256 price, , , ) = priceFeed.latestRoundData(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rabeet8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Rabeet8 Can I see your both files?
Either you have misspelt priceFeed here
priceFeed.latestRoundData()
or you have an issue with the return values fromlatestRoundData
. It returns 5 values so for the unwanted values you need to leave the space with comma,