hello!
I'm having a problem with the functions that send ether (payable) in hardhat with the tests... (in remix it works without problems).

"Error: Transaction reverted: contract call run out of gas and made the transaction revert".
I have tried different combinations of configurations for hardhat, but I always get the same error.
I have read somewhere, that it is due to a problem with the hardfork istambul, question, in the documentation of hardhat I do not see that this hardfork is available, so I have tried with all available hardfork and I still have this failure.
I should clarify that if I try this function in remix it works without problems.
Any suggestions?

thanks

Feb 14, 2022, 2:33 PM
This error seems that the problem may be in your code, its weird that a payable function runs out of gas 🤔
Feb 14, 2022, 2:35 PM
The function works for me in remix, with all networks. It fails in the hardhat tests only.
Feb 14, 2022, 2:36 PM
The only moment when i changed my hardhat conf to another hf was when I tried to replicate a 5 Gwei fixed price but i was not able to 🥲
Feb 14, 2022, 2:39 PM

© 2024 Draquery.com All rights reserved.