Skip to content

JS wallet creation is missing accountId #195

@ebaizel

Description

@ebaizel

Expected Behaviour

Following the steps to create a Wallet here, I would expect to be able to complete all the steps successfully.

I continue getting an Error("Unknown account") that is thrown from the code sample here

🙋‍️ Possible Solution [optional]

I added await syncWallet.resolveAccountId(); and that created the accountId, and I was able to complete the rest of the steps successfully.

Note: I got the idea for the solution by looking at the Rust SDK docs which have a similar method wallet.update_account_id().await?;. I think the JS docs should be updated to include this step as well.

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