Skip to content

[Bug]: Support for Solidity custom error is broken #18510

@0xnakato

Description

@0xnakato

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

No one assigned

    Labels

    Sev3-lowLow severity; minimal to no impact upon usersteam-confirmationsPush issues to confirmations teamteam-confirmations-system-deprecatedDEPRECATED: please use "team-confirmations" insteadtype-bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions