Problem with Fallback/Receive functions. #5629
JeremySolidityMage
started this conversation in
General
Replies: 2 comments 1 reply
-
did you tried it on testnet first ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@JeremySolidityMage You have defined the deposit function inside your fallback and receive functions, and it contains a require statement where you need at least $180 (I hope you are not doing this on mainnet 🤯) and then it compares with the conversion price, so I hope you have used the correct mainnet address for price conversion. |
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.
-
Hi, does anyone know why when i deploy the contract on mainnet, when I send eth to contract through metamask, I do not have any balance assigned to my address and I cannot withdraw. I would be amazed if someone can help.
Beta Was this translation helpful? Give feedback.
All reactions