full-blockchain-solidity-course-js icon indicating copy to clipboard operation
full-blockchain-solidity-course-js copied to clipboard

Error running Withdraw FundMe.test.js Transaction ran out of gas

Open ecwarrior13 opened this issue 3 years ago • 4 comments

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?

ecwarrior13 avatar Aug 08 '22 22:08 ecwarrior13

Hello, please send the code of your testing and withdraw function, if it differs from the one shown in the video.

KumaCrypto avatar Aug 17 '22 07:08 KumaCrypto

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.

br0wnD3v avatar Aug 28 '22 04:08 br0wnD3v

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.

anannyenaik avatar Sep 15 '22 04:09 anannyenaik