symbol-cli
symbol-cli copied to clipboard
Using account with index = 1 instead 0 when creating new wallet
How to reproduce
- Create a new profile with Type Mnemonic Result: CLI generates the second address from mnemonic (index = 1) instead first on (index = 0)
It's clearly visible that it's not the first address when we try to import the same mnemonic phrase:
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.