Replies: 1 comment
-
You are calling the function getConversionRate() without giving it an argument for the priceFeed in your require statement. Your fund function's require statement should look something like: require(msg.value.getConversionRate(s_priceFeed) >= MINIMUM_USD, "You need to spend more ETH!"); where s_priceFeed represents the AggregatorV3Interface object that you should have initialized through your constructor. Something like this: constructor(address priceFeed) {
s_priceFeed = AggregatorV3Interface(priceFeed);
i_owner = msg.sender;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
on this function im running into an error..
Beta Was this translation helpful? Give feedback.
All reactions