Skip to content

Compiler Error: Invalid Implicit Conversion from Contract AggregatorV3Interface #2139

Answered by EngrPips
chapman91 asked this question in Q&A
Discussion options

You must be logged in to vote

The path you imported AggregatorV3Interface from in your FundMe contract is import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";. In contrast, the path you imported AggregatorV3Interface from in your PriceConverter Library is import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; They are not the same, Please kindly make use of one path in both the FundMe contract and PriceConverter Library.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@EngrPips
Comment options

@chapman91
Comment options

@EngrPips
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@EngrPips
Comment options

Answer selected by chapman91
@chapman91
Comment options

@EngrPips
Comment options

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