Skip to content

ImportError: cannot import name 'MockV3Aggregator' from 'brownie' #1857

Answered by Nlferu
chioke07 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @chioke07

As I can see you do not even have MockV3Aggregator under your contracts -> test folder. It should be as below:

Check your brownie-config.yaml also if it looks like this and if you have no typo there:

dependencies:
  # - <organization/repo>@<version>
  - smartcontractkit/chainlink-brownie-contracts@1.1.1
compiler:
  solc:
    remappings:
      - '@chainlink=smartcontractkit/chainlink-brownie-contracts@1.1.1'

Replies: 1 comment 3 replies

Comment options

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

@Nlferu
Comment options

@cromewar
Comment options

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