Skip to content

Lesson 7 Getting TypeError when I try to compile the Mock file #4951

Discussion options

You must be logged in to vote

Sorry for the trouble. The problem is solved. I updated chainlink to "@chainlink/contracts": "^0.6.1"
and also changed my mock like this

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/tests/MockV3Aggregator.sol";

Instead of importing from v0.6, I am importing from v0.8

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Uchiha-Itachi0
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Uchiha-Itachi0
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