GithubHelp home page GithubHelp logo

TypeError: Interfaces cannot inherit. interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface about brownie_fund_me HOT 11 CLOSED

patrickalphac avatar patrickalphac commented on September 22, 2024
TypeError: Interfaces cannot inherit. interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface

from brownie_fund_me.

Comments (11)

JCDC9919 avatar JCDC9919 commented on September 22, 2024 1

I got it to compile in the end, but couldn't get the red warning for my import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; line to go away!

from brownie_fund_me.

themodfunction avatar themodfunction commented on September 22, 2024

Hey Guys!
I found a solution to remove V2V3 and just put V3.
It works.

from brownie_fund_me.

FCardellino avatar FCardellino commented on September 22, 2024

Hello! Can you indicate where or how you remove V2V3? Thanks!

from brownie_fund_me.

themodfunction avatar themodfunction commented on September 22, 2024

Hey @FCardellino
In almost all places where V2V3 occurs, replace it by just V3

from brownie_fund_me.

Swapnamoy45 avatar Swapnamoy45 commented on September 22, 2024

I was having the same problem and was stuck for over 4 hours with this. I was using pragma solidity ^0.8.0; solidity version and compiling on 0.6.0 version. There are some serious problems with the Aggregators to be honest.

Finally, somehow I found a way to compile the MockV3Aggregator as well......

Just use:

 - '@chainlink=smartcontractkit/[email protected]'
 - '@chainlink=smartcontractkit/[email protected]'

Both of these in the Config file....and then you're good to go!

HOPE IT HELPS.
Thanks.

from brownie_fund_me.

PatrickAlphaC avatar PatrickAlphaC commented on September 22, 2024

That's really odd....

The 0.2.1 should do the trick...

from brownie_fund_me.

cryptony8055 avatar cryptony8055 commented on September 22, 2024

im having this same issue . cant get the mockV3Aggregator to compile . cant get past that section bc of the issue

from brownie_fund_me.

FCardellino avatar FCardellino commented on September 22, 2024

Hi @cryptony8055, I solved the issue in this way . I hope it can help you!

from brownie_fund_me.

JCDC9919 avatar JCDC9919 commented on September 22, 2024

Hi @cryptony8055, I'm not sure if it's the "correct way" but I found it seemed to work if you widen the scope of the Solidity versions:
pragma solidity >=0.6.0 <0.9.0;
Using the carrot notation on 0.6.0 seemed to give me further errors
This was using 0.3.0 chainlink in the .config file

from brownie_fund_me.

cryptony8055 avatar cryptony8055 commented on September 22, 2024

hey @JCDC9919 thanks a lot it worked .

from brownie_fund_me.

PatrickAlphaC avatar PatrickAlphaC commented on September 22, 2024

Closing, feel free to open back up.

from brownie_fund_me.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.