Query in FundMe.sol #722
-
Why are we multiplying minimumUsd with 1e18? Since the msg.value is already converted to USD, we should compare it with USD on the right side. |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jul 3, 2022
Replies: 1 comment 1 reply
-
@Dibu2002 For comparing it to the left side of the value (msg.value) we need to convert the 50 USD to Wei. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Dibu2002 For comparing it to the left side of the value (msg.value) we need to convert the 50 USD to Wei.