Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.
This repository was archived by the owner on May 11, 2022. It is now read-only.

How to distinguish between locked and no account ? #20

@digitaldonkey

Description

@digitaldonkey

The common way to check if a account is unlocked in Metamask is a async call to this.web3.eth.getAccounts() and then check if accounts[0] is set.

In Mascara this works fine too. But I son't see how to differentiate between a existing, locked account and a user who never created an account at wallet.metamask.io.

So I can't decide if I should ask the interacting user to unlock or create an account.
If the popup is loaded, it becomes clear, but it would be great if I can differentiate between unlock you account and create a new account at the button triggering the popup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions