Skip to content

MockV3Aggregator don't compile #129

Answered by toddteller
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Same problem here.

I solved it by changing the Solidity version from ^0.6.0 to ^0.7.0

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

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

Also remember to add the compiler version in hardhat.config.js

module.exports = {
    // solidity: "0.8.8",
    solidity: {
        compilers: [{ version: "0.8.8" }, { version: "0.6.0" }, {version: "0.7.0"}],
    },

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by PatrickAlphaC
Comment options

You must be logged in to vote
0 replies
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