Lesson 4: PriceFeed not convertible to AggregatorV3Interface type #652
-
Hello, I'm a newbie just getting started with this course. I'm currently stuck at lesson 4, having trouble with smart contract FundMe. Even if I copy/paste the code from the .sol file on GitHub, I get an error: "PriceFeed not implicitly convertible to AggregatorV3Interface type". As I said, I have no clue about what could be wrong. I've checked the forum and haven't seen any discussions about this issue, so any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
when your trying to compile or deploy? |
Beta Was this translation helpful? Give feedback.
-
@angelboyer95 This means you are assigning a priceFeed that is a type of AggregatorV3Interface to a variable or a parameter that is not a type of AggregatorV3Interface and solidity does not convert that implicitly. You need to mention the type explicitly there. |
Beta Was this translation helpful? Give feedback.
@angelboyer95 This means you are assigning a priceFeed that is a type of AggregatorV3Interface to a variable or a parameter that is not a type of AggregatorV3Interface and solidity does not convert that implicitly. You need to mention the type explicitly there.