Gas estimation failed in FundMe.sol contract #773
Answered
by
0xSanyam
talha-rafique
asked this question in
Q&A
-
i have comented all code to try so the no error show, but still Gas estimation failed Error shows. Error: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted Network: Rinkby Here is my Code for contract.
|
Beta Was this translation helpful? Give feedback.
Answered by
0xSanyam
Jul 6, 2022
Replies: 1 comment 1 reply
-
@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 ); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
talha-rafique
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@talha-rafique make the minimumValue public
in the constructor
When you are returning price, multiply it with 1e10