-
When running my staging test it attempts to withdraw but I can see on rinkeby etherscan that the transaction didn't go through because of warning : Warning! Error encountered during contract execution [out of gas] https://rinkeby.etherscan.io/address/0x27fd75bf3605ea99e216dfe51440430b0fc54a9b Should i somehow increase the gas limit in the hardhat network config or is there something else I should do? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Uhm, on Etherscan the transaction did go through though, not understanding what your problem here is. (if it didn't go through due to gas, then it would be a different issue) Note: Also, should have a high gas limit for tests |
Beta Was this translation helpful? Give feedback.
-
`// SPDX-License-Identifier: MIT // 3. Interfaces, Libraries, Contracts contract FundMe {
} |
Beta Was this translation helpful? Give feedback.
-
I manually increased the gas in the hardnat config and it worked. I then looked at the succsesfull transaction and saw that it used aroud 35 000 gas and the auto setting with gas undefined only supplied around 25 000 gas. |
Beta Was this translation helpful? Give feedback.
I manually increased the gas in the hardnat config and it worked. I then looked at the succsesfull transaction and saw that it used aroud 35 000 gas and the auto setting with gas undefined only supplied around 25 000 gas.