Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback not supported #8

Open
wombyz opened this issue Jan 8, 2022 · 7 comments
Open

Callback not supported #8

wombyz opened this issue Jan 8, 2022 · 7 comments

Comments

@wombyz
Copy link

wombyz commented Jan 8, 2022

Getting error "Source "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol" not found: File import callback not supported" when working on the brownie fund me project.

Have played around with everything but even though they are downloaded and installed they are not used when compiling.

Reason I say that they are not being used is I get this error:

CompilerError:solc returned the following errors:

contracts/FundMe.sol:28:16: DeclarationError: Undeclared identifier.
        return priceFeed.version();

Meaning when creating the priceFeed object in the constructor it is not being created properly of type AggregatorV3Interface(____).

constructor(address _priceFeed) public {
        priceFeed = AggregatorV3Interface(_priceFeed);
        owner = msg.sender;
    }

Spent a few hours trying to solve this and still nothing so would be great to get a hand so I can proceed with the course!

@PatrickAlphaC
Copy link
Contributor

What version of the chainlink contracts are you using?

@wombyz
Copy link
Author

wombyz commented Jan 12, 2022

In FundMe.sol:

import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol";

In yaml:

dependencies:
  # - <organization/repo>@<version>
  - smartcontractkit/[email protected]
compiler:
  solc:
    remappings:
      - '@chainlink=smartcontractkit/[email protected]'

@JBush511
Copy link

I had to switch over to versions 0.2.1
at one point.

@kjones86
Copy link

kjones86 commented Mar 6, 2022

@wombyz did you ever resolve your issue? I'm experiencing something similar.

@AureliusAi
Copy link

@wombyz where did you get version 1.1.1 from?
latest version of smartcontractkit/chainlink-brownie-contracts as of Feb 11 2022 is 0.4.0

@JBush511
Copy link

JBush511 commented Apr 27, 2022 via email

@1NoobDev
Copy link

@wombyz where did you get version 1.1.1 from? latest version of smartcontractkit/chainlink-brownie-contracts as of Feb 11 2022 is 0.4.0

They changed the version numbering to match the version numbers in their NPM packages.. Hence it used to be v1++ and those have been down to 0.4.x at the time of writing..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants