-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[Bug]: Support for Solidity custom error is broken #18510
Copy link
Copy link
Closed
Labels
Sev3-lowLow severity; minimal to no impact upon usersLow severity; minimal to no impact upon usersteam-confirmationsPush issues to confirmations teamPush issues to confirmations teamteam-confirmations-system-deprecatedDEPRECATED: please use "team-confirmations" insteadDEPRECATED: please use "team-confirmations" insteadtype-bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
Sev3-lowLow severity; minimal to no impact upon usersLow severity; minimal to no impact upon usersteam-confirmationsPush issues to confirmations teamPush issues to confirmations teamteam-confirmations-system-deprecatedDEPRECATED: please use "team-confirmations" insteadDEPRECATED: please use "team-confirmations" insteadtype-bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
After the recent upgrade, the support for Solidity custom error is broken. Previously, it could return the function selector of the custom error that caused the transaction to be reverted when estimating gas/submitting the transaction.
Currently, if the transaction was reverted with a string reason, the error is like
However, for custom errors, the reason is no longer provided.
Steps to reproduce
Call a transaction that will be reverted with Solidity custom errors.
Error messages or log output
{ "code": -32603, "message": "Internal JSON-RPC error.", "data": { "code": 3, "message": "Failed to submit transaction: cannot estimate gas", "data": { "code": 104, "message": "cannot estimate gas" } } }Version
10.28.2
Build type
None
Browser
Chrome
Operating system
Windows
Hardware wallet
No response
Additional context
No response