You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I am running into this same issue, but using await syncWallet.resolveAccountId(); does not create an account id for me. When I run that function i get Error: Can't resolve account id from the zkSync node
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.The text was updated successfully, but these errors were encountered: