Skip to content

add revert_on_failure=False kwarg to create builtins #4147

@pcaversaccio

Description

@pcaversaccio

I think on the (off-chain) tooling side it would be useful to have the possibility to enable bubbling up the revert reasons for the create built-ins such as create_minimal_proxy_to, create_copy_of, create_from_blueprint, and the planned raw_create built-in here. This means you could add a kwarg to these functions like raw_revert_data: uint256 = 0 and if it's above 0 the functions also return some return_data with Bytes[raw_revert_data] that can be processed further in case of a failure. If revert_on_failure is True, the called revert statement should be like raw_revert(return_data).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions