symbol-cli icon indicating copy to clipboard operation
symbol-cli copied to clipboard

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

Open cryptoBeliever opened this issue 3 years ago • 0 comments

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.

cryptoBeliever avatar Jan 05 '22 13:01 cryptoBeliever