0
PS E:\NFT-DEMO> brownie compile
INFO: Could not find files for the given pattern(s).
Brownie v1.16.4 - Python development framework for Ethereum

Compiling contracts...
  Solc version: 0.6.6
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
CompilerError: solc returned the following errors:

contracts/AdvancedCollectible.sol:6:1: ParserError: Source "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol" not found: File outside of allowed directories.
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
3
  • And your question is...? Dec 9, 2021 at 14:02
  • i am getting compiler error
    – Kamal Shah
    Dec 9, 2021 at 16:37
  • Can you post your brownie-config.yaml in your question Dec 13, 2021 at 16:27

1 Answer 1

0

In your brownie-config.yaml file make sure you have the following code:

dependencies:
  - smartcontractkit/chainlink-brownie-contracts@0.2.1
4
  • well i have contracts@1.1.1
    – Kamal Shah
    Dec 11, 2021 at 4:13
  • now iam getttng this error: contracts/AdvancedCollectible.sol:6:1: ParserError: Source "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol" not found: File outside of allowed directories. import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
    – Kamal Shah
    Dec 11, 2021 at 4:17
  • can u solve my query
    – Kamal Shah
    Dec 11, 2021 at 15:29
  • Can you edit the question and add the code of your brownie-config and python script Dec 11, 2021 at 16:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.