Closed
Description
Ethers Version
5.6.4
Search Terms
insufficient funds, insufficient funds for intrinsic transaction cost, error message
Describe the Problem
Given a contract with a require like this one:
require(false, "Insufficient funds")
Ethers will (wrongly) say that the error was "Error: insufficient funds for intrinsic transaction cost"
I guess there's some pattern matching going on with the returned error message.
This happens even with the hardhat network when a correct data
is returned with the encoded error string.
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
Activity