Error running Withdraw FundMe.test.js Transaction ran out of gas
Lesson
Lesson 10
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
https://youtu.be/gyMwXuJrbJQ?t=41772
Operating System
Windows
Describe the bug
Running the FundMe.test.js - when it starts the withdraw section, const transactionResponse = await fundMe.withdraw() after a few seconds I get the following error: withdraw ETH from a single founder: TransactionExecutionError: Transaction ran out of gas
Any way to change the testing not to run out of gas?
Hello, please send the code of your testing and withdraw function, if it differs from the one shown in the video.
You need to have some ETH in the account that you are using for the withdraw. The gas for txn is supplied by the person initiating the transaction usually.
You need to have some ETH in the account that you are using for the withdraw. The gas for txn is supplied by the person initiating the transaction usually.
The primarily cause is as quoted above.
Also, as it is irrelevant here--does not seem like a code bug, more so of a logical error--you should close the issue; create a discussion for others to look into the logical errors.