-
Beta Was this translation helpful? Give feedback.
Answered by
cromewar
Nov 14, 2021
Replies: 1 comment 11 replies
-
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. |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
cromewar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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.