-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fund #13
Comments
Are you sure the adresses that you have (rinkebin) is same as your metamask test network? (Both needs to be rinkebin or kovan etc.) |
Did you ever figure this out? Stuck at the same issue. I suspect it could be an error with importing the SafeMath library since the rest of the code matches and the SafeMath library could have been updated since this course was released |
Man I forget how I got through this... I remember for awhile I played with decimals... I think I changed uint256 minimumUSD = 50 * 10 ** 18; to uint256 minimumUSD = 0.5 * 10 ** 18; But then a day or two later I was back at it and further into the course I had another issue and I changed it back to uint256 minimumUSD = 50 * 10 ** 18; So my only guess is proceed and the fix is another 10 - 30 min into the course 🤷♂️ P.S. sorry for the delayed response |
@Dcamy @amandacat222 |
I'm having an issue with the Fund function, I've gone through all the issues here but not finding a solution that works. I get the same error for any fund amount, from any wallet, in gwie, and wie. The error I get is the one expected when funding with the wrong amount.
I'm pretty new to all of this so guessing the issue is user error but I am a bit lost here. If I comment out
uint256 minimumUSD = 50 * 10 ** 18;
andrequire(getConversionRate(msg.value) >= minimumUSD, "You need to spend more ETH!");
Everything works.
Is this user error or.?.My code below for reference
`// SPDX-License-Identifier: MIT
pragma solidity >=0.6.6 <0.9.0;
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol";
contract FundMe {
using SafeMathChainlink for uint256;
}
`
The text was updated successfully, but these errors were encountered: