[Ethereum] use chainlink using remix and i followed the chainlink docs

chainlinkexternal-apioraclesremixsolidity

enter image description here

I am facing this issue,What to do now?

My Code

pragma solidity ^0.6.7;
import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
contract PriceConsumerV3 {
    AggregatorV3Interface internal priceFeed;
   
    constructor() public {
        priceFeed = AggregatorV3Interface(0x9326BFA02ADD2366b30bacB125260Af641031331);
    }
  
    function getLatestPrice() public view returns (int) {
        (
            uint80 roundID, 
            int price,
            uint startedAt,
            uint timeStamp,
            uint80 answeredInRound
        ) = priceFeed.latestRoundData();
        return price;
    }
}

Best Answer

The location of the interface changed in GitHub. The contract is now located here: https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol

You can find the updated code for the price consumer here: https://github.com/smartcontractkit/documentation/blob/main/_includes/samples/PriceFeeds/PriceConsumerV3.sol Currently it uses Solidity ^0.8.7.