Lesson 6: Error Compiling MockV3Aggregator #831
-
Hi! I went to compile MockV3Aggregator but was hit with a solidity version error saying I was compiling from 8.11 when my settings and my remote was compiled to 0.6.0. Curiously enough, this was fixed when in my settings.json in my .vscode folder and my config file when I added this: dependencies: - <organization/repo>@
Now all I get is the error: contracts/test/MockV3Aggregator.sol:4:1: ParserError: Source "/root/.brownie/packages/smartcontractkit/[email protected]/contracts/src/v0.6/interfaces/AggregatorV2V3Interface.sol" not found: File not found. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @karlMoreno If you take a look at chainlink mix: https://github.com/smartcontractkit/chainlink-mix you can see that direction does not exists, could you please share your brownie config.yaml? |
Beta Was this translation helpful? Give feedback.
-
Issue resolved when in brownie-config.yaml file i set solc: and in the the MockV3Aggregator file I changed from: pragma solidity ^0.6.0; to: pragma solidity >=0.6.0; |
Beta Was this translation helpful? Give feedback.
Issue resolved when in brownie-config.yaml file i set
solc:
version 0.6.6
and in the the MockV3Aggregator file I changed from:
pragma solidity ^0.6.0;
to:
pragma solidity >=0.6.0;