Skip to content

TypeError: Interfaces cannot inherit. interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface #6517

Answered by ProKing13
ProKing13 asked this question in Q&A
Discussion options

You must be logged in to vote

it is finally solved

// SPDX-License-Identifier: MIT
pragma solidity 0.6.0;
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorInterface.sol";
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
// import "@chainlink/contracts/src/v0.6/tests/MockV3Aggregator.sol";

abstract contract MockV3Aggregator is
    AggregatorInterface,
    AggregatorV3Interface
{
    uint256 public constant override version = 0;

    uint8 public override decimals;
    int256 public override latestAnswer;
    uint256 public override latestTimestamp;
    uint256 public override latestRound;

    mapping(uint256 => int256) public override getAnswer;
    mapping(uint256 => uint256) pu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ProKing13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant