Skip to content

Receiving parse error while importing AggregatorV3Interface from chainlink repo #865

Discussion options

You must be logged in to vote

Alright so it's working now when creating a project again from scratch with limited functionalities first.

  1. I deleted the .brownie folder again per your recommendation. 2. Created a new projected added the FundMe.sol file and the brownie-config.yaml files from this project.

FundMe.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.8;

import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

contract FundMe {
    mapping(address => uint256) public addressToAmountFunded;
    address[] public funders;
    address public owner;
    AggregatorV3Interface public priceFeed;

    constructor(address _priceFeed) {
        priceFeed = AggregatorV3Interface(_priceFeed);
…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@vibhaBlockchain
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
2 replies
@cromewar
Comment options

@vibhaBlockchain
Comment options

Answer selected by cromewar
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