Lesson 4 - Floating point Math in Solidity #6575
-
In the Fund me code where we are checking if we are able to fund value greater than 50 dollars, when i enter a value of wei which is close to this 50 dollars or more, the transaction is executing successfully. But when i enter a value say 1000000000000000000 Wei(1ETH), then im getting the error stating transaction might fail. What exactly is the reason behind this as 1ETH is around 3K USD, so ideally its greater than 50 USD and the transaction should pass, right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@nagarajan24 Do you have 1 ETH in your metamask account for your testnet (Sepolia)? Please check that, maybe you don't have enough ETH to transfer in first place. |
Beta Was this translation helpful? Give feedback.
@nagarajan24 Do you have 1 ETH in your metamask account for your testnet (Sepolia)? Please check that, maybe you don't have enough ETH to transfer in first place.