Skip to content

Importing AggregatorV3Interface issues #121

Answered by PatrickAlphaC
leopashov asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you’re trying to import v0.8 instead of v0.6. Version 1.1.1 of the brownie contracts packages doesn’t have v0.8, 0.2.2 does tho. So you have two option:

  1. Have everything use 0.6 editions
  2. Use import "smartcontractkit/chainlink-brownie-contracts@0.2.2/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

remember, you’ll need to update your dependencies and remapping in your config with this!

I know it looks like you’re using an “earlier” version of the contracts, but after 1.2.0 the versioning was changed to match those in npm, so 0.2.2 is actually currently the most up to date.

Let me know if this helps

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ChristianG77
Comment options

@ChristianG77
Comment options

@PatrickAlphaC
Comment options

@leopashov
Comment options

Answer selected by leopashov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants