Skip to content

DeclarationError: Undeclared identifier (Lesson 4 : Fundme) #5175

Answered by alymurtazamemon
Rabeet8 asked this question in Q&A
Discussion options

You must be logged in to vote

@Rabeet8 Can I see your both files?

Either you have misspelt priceFeed here priceFeed.latestRoundData() or you have an issue with the return values from latestRoundData. It returns 5 values so for the unwanted values you need to leave the space with comma,

(, int256 price, , , ) = priceFeed.latestRoundData();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rabeet8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants