Lesson 7, testing fund function - result always didnt send enough ETH #725
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
@czilauto0r1 Are you testing on the Testnet network? if so then make sure you have 1 ETH in it because you specify 1 Eth as a value. Or you can lower your value, at this time 0.05 value of eth will work. |
Beta Was this translation helpful? Give feedback.
-
Its a known issue, a lot of Discussions here have similar errors when calling Fund(). the transaction actually does go through in the background, while still throwing the error of "not enough ETH" |
Beta Was this translation helpful? Give feedback.
-
Firstly, check if there is a problem with your getConversionRate(). Also, the Fund function works fine for me, so it definitely can be fixed. Copy paste this in FundMe.sol (you can change variable names as per your convention)
If the problem still persists, I would recommend cloning the repo (message/quote me if doubtful) and changing basic files such as hardhat config as per your choice. Let me know if this solves your problem, goodluck! |
Beta Was this translation helpful? Give feedback.
@czilauto0r1 Are you testing on the Testnet network? if so then make sure you have 1 ETH in it because you specify 1 Eth as a value. Or you can lower your value, at this time 0.05 value of eth will work.