PatrickAlphaC / hardhat-fund-me-fcc

82 stars 184 forks source link

MockV3Aggregator Solidity version #112

Closed Sacha924 closed 1 year ago

Sacha924 commented 1 year ago

Hello, Even If I can compile the code with "yarn hardhat compile", when I do "solhint 'contracts/*/.sol" It tells me that I have one error : image

Would it be better to use ^0.8.7 solidity version avec the v0.8 MockV3Aggregator like this so we don't get any error :

// SPDX-License-Identifier: MIT pragma solidity ^0.8.7;

import "@chainlink/contracts/src/v0.8/tests/MockV3Aggregator.sol";

PatrickAlphaC commented 1 year ago

Mockv3aggregator.sol doesn't exist for 0.6. So you'll want to make sure your hardhat.config.js has 0.6.6 as one of it's compiler versions.