symbol / symbol-cli

Command-line tool for Symbol
https://docs.symbolplatform.com/cli.html
Apache License 2.0
36 stars 24 forks source link

Using account with index = 1 instead 0 when creating new wallet #395

Open cryptoBeliever opened 2 years ago

cryptoBeliever commented 2 years ago

How to reproduce

  1. Create a new profile with Type Mnemonic Result: CLI generates the second address from mnemonic (index = 1) instead first on (index = 0)

image

It's clearly visible that it's not the first address when we try to import the same mnemonic phrase:

image

Expected behavior

Use first address (index = 0) when creating a profile with type Mnemonic.

The class used to create HD Wallets is HdProfileCreation: https://github.com/symbol/symbol-cli/blob/c3923fae660b0594ec890ec731aac4333f909cc3/src/models/profileCreation.types.ts#L52 Index is pathNumber property.