Open saiakhil2012 opened 2 years ago
This looks like that node has changed the error string used to indicate insufficient intrinsic cost; what version and of what node are you using? I.E. geth vs parity vs etc.
Ethers must maintain a series of strings internally since there is no standard for the errors returned, so whenever a node changes their error strings, ethers needs to be updated.
I am directly using Ganache. Version of Ganache is 2.5.4
Ethers Version
v5.6.9
Search Terms
error handling
Describe the Problem
When there are errors received from Blockchain network, getting an error as,
Error: processing response error <>
Following is an example, let's say, to present this problem, trying to write data to Blockchain and the sender's account does not have enough funds.
Using the Ethers.js library, making such a call to Smart contract function generates following error,
Whereas, performing the same call at JSON RPC level, i.e doing a direct curl call, getting an error directly,
Is there some gap between what is expected as part of error from the Blockchain network or some other aspect missing when processing the error itself in Ethers.js?
Thanks in advance for taking a look Akhil
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
Ganache
Environment (Other)
No response