Merge pull request #8 from aspic/support-optional-seed

Let seed be optional since this is supported in the library
This commit is contained in:
Miro Metsänheimo 2021-03-07 16:11:17 +02:00 committed by GitHub
commit c44873dede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ const wallet = {
* @param {string} [seed] - (Optional) 64 byte hexadecimal string seed to be used instead of generating * @param {string} [seed] - (Optional) 64 byte hexadecimal string seed to be used instead of generating
* @returns the generated mnemonic, seed and account * @returns the generated mnemonic, seed and account
*/ */
generateLegacy: (seed: string): Wallet => { generateLegacy: (seed?: string): Wallet => {
return generator.generateLegacyWallet(seed) return generator.generateLegacyWallet(seed)
}, },