Skip to content
Discussion options

You must be logged in to vote

@cromewar and I figured out the issue. It seems there's an issue with Brownie. In Lottery.sol, brownie compile was reading my commented out pragma solidity ^0.6.6; declaration instead of my declared pragma solidity ^0.7.0; statement. Once I removed the commented out code, I was able to compile my project even with the LinkToken.sol script that's running pragma solidity ^0.4.11;.

Broken:

// SPDX-License-Identifier: MIT

// pragma solidity ^0.6.6;
// import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";

pragma solidity ^0.7.0;

import "@chainlink/contracts/src/v0.7/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.7/VRFConsumerBase.sol";
import 

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@freddie71010
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by freddie71010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants