Skip to content

Lesson 6 : Constructor requires no arguments (MacOS Catalina 10.15.7) #356

Answered by cromewar
JamiDEV asked this question in Q&A

You must be logged in to vote

Hello @JamiDEV it seems you are passing arguments to FundMe constructor (such as the price feed address) and the contract is not expecting them, your FundMe.sol must have a constructor like this:

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

Note: remember to delete the build folder and compile again anytime you make changes to the contracts, otherwise brownie is going to take the last version.

Replies: 1 comment 11 replies

You must be logged in to vote
11 replies
@cromewar

@JamiDEV

@cromewar

@JamiDEV

@cromewar

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