Skip to content

Host should resolve an event's name from when a handler fails #2150

@adr1anh

Description

@adr1anh

At the moment, if a precompile fails, the error only displays the EventID which is an arbitrary Felt. This is because Libraries only export lists of (EventId, Handler), mainly because this is the information required by the Host. For the Host to be able to produce better error messages, the Library would need to export an Event Name instead of just the ID.

Moreover, an EventName type would also be able to enforce consistent name-spacing rules.

Extra context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions