Hey, can anyone help me maybe? I always receive the following error when compiling in brownie

contracts/AdvancedCollectible.sol:4:1: ParserError: Source "chainLink/contracts/src/v0.6/VRFConsumerBase.sol" not found: File not found.
import "chainLink/contracts/src/v0.6/VRFConsumerBase.sol";

Sep 17, 2021, 8:45 AM
Import directly from there repo
Sep 17, 2021, 8:48 AM
how?
I did brownie bake chainlink-mix
Sep 17, 2021, 8:49 AM
Use @ before chainlink
Sep 17, 2021, 8:49 AM
removed it for test purpose
contracts/AdvancedCollectible.sol:4: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";
Sep 17, 2021, 8:50 AM
You inside npm project?
Sep 17, 2021, 8:50 AM
Import "https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.6/VRFConsumerBase.sol";

Or
Ok
Sep 17, 2021, 8:51 AM
Have you set up remapping in config?
Sep 17, 2021, 9:04 AM
sorry, got distracted… yeah … remapping is enabled.
I import ERC721 & VRFConsumerBase. ERC721 works
Sep 17, 2021, 9:16 AM
try finding the missing files manually and evaluate whether the paths to the files are correct
Sep 17, 2021, 9:20 AM
Good luck with that attitude
Sep 17, 2021, 9:21 AM

© 2024 Draquery.com All rights reserved.