Skip to content

Are custom errors bubbled up too? #22

@PaulRBerg

Description

@PaulRBerg

EIP-1167 says that:

...

  • handles error return bubbling for revert messages

Solidity v0.8.4 added support for custom errors:

error Unauthorized();

contract MyContract {
    function foo() external {
        revert Unauthorized();
    }
}

Are these bubbled up just like revert reasons?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions