Remix Fund Me Lesson 4 #5806
-
I was trying to deploy the FundMe.sol contract on the testnet as shown in the tutorial, but I keep getting the following error: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? I believe this does not mean that I do not have enough ether for the gas fee and there was no mention of this error. I have sufficient ether in my account and have done everything as shown. However, I am unable to fix this error. Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! You didn't provide your code so i'm not sure what is the reason behind that error. But i have an idea.
Like the code says above, msg.value have to be greater that the minimumUsd right? The first time i was writing this code i was saying
Pay attention to "<" . I was saying minimumUSD have to be greater that msg.value . And when i fund this contract with for example $100, remix shows me the message that you put here. But i was like "no way, i have enough money" etc. So double check your require again. And if that doesn't fix your issue, pls provide your code so i can check again :) |
Beta Was this translation helpful? Give feedback.
fixed the issue