Skip to content

Gas estimation failed in FundMe.sol contract #773

Answered by 0xSanyam
talha-rafique asked this question in Q&A
Discussion options

You must be logged in to vote

@talha-rafique make the minimumValue public

uint256 public minimumValue;

in the constructor

minimumValue = (50 * 1e18);

When you are returning price, multiply it with 1e10

return (uint256)(priceinUSD * 1e10 );

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@talha-rafique
Comment options

Answer selected by talha-rafique
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