I am following a YouTube tutorial and I have the following contract (in Remix):
// SPDX-License-Identifier: MIT
pragma solidity >= 0.6.0 < 0.9.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract FundMe {
mapping(address => uint256) public addressToAmountFunded;
}
The import part is in red and has the following error:
"@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol:2:1: ParserError: Source file requires different compiler version (current compiler is 0.6.0+commit.26b70077.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.8.0;
^---------------------^
.deps/npm/@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol
@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol
SourceUnit
@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol 1:0"