-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Description
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
"Failed to submit transaction: cannot estimate gas : [THE STRING ERROR REASON]."
However, for custom errors, the reason is no longer provided.
"Failed to submit transaction: cannot estimate gas."
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
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