-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugVerified to be an issue.Verified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.
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
Metadata
Metadata
Assignees
Labels
bugVerified to be an issue.Verified to be an issue.fixed/completeThis Bug is fixed or Enhancement is complete and published.This Bug is fixed or Enhancement is complete and published.