Inconsistent Handling of Revert Data in Error Objects #4954
Labels
investigate
Under investigation and may be a bug.
next-patch
Issues scheduled for the next arch release.
on-deck
This Enhancement or Bug is currently being worked on.
v6
Issues regarding v6
Ethers Version
6.13.2
Search Terms
No response
Describe the Problem
Inconsistent Handling of Revert Data in Error Objects
Description
With help of
provider.on("debug")
hooks, I've tracked inconsistent error object structures when transactions revert. The same transaction can sometimes return proper execution revert data and other times return "missing revert data" error without the "execution reverted" message, making it difficult to reliably extract revert reasons.Observed Behavior
For the exact same transaction input, I sometimes receive:
Key Differences
Impact
This inconsistency makes it difficult to build reliable error handling logic, because the
getBuiltinCallException
function logicethers.js/src.ts/abi/abi-coder.ts
Line 59 in 0195f44
Environment
Steps to Reproduce
Environment
Browser (Chrome, Safari, etc)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: