Skip to content

Better error message when initAztecJs is not called #3618

@spalladino

Description

@spalladino

If a user forgets to call initAztecJs, the error message they get is Initialise first via initSingleton, which is not referenced in our docs or aztecjs API. We should throw an error that references initAztecJs instead.

Consider also removing the need for calling initAztecJs explicitly, and lazy loading instead when it's actually used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions