Lesson 4: AggregatorV3Interface #369
-
Hey there, I have a question. In lesson 4 I saw Patrick imported the code for the interface of AggregatorV3Interface into remix, but I am not sure how did it work, how did remix know were to get the logic for getting the version, that interface could be some-other interface I wrote, we didnt import anything from chainlink. Hope I am clear with my question |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
when we imported that |
Beta Was this translation helpful? Give feedback.
-
interface(address) equals the deployed contract. |
Beta Was this translation helpful? Give feedback.
@viganzeqiri
when we imported that
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
it automatically gets the ABI of the contract while compiling.