]> zoso.dev Git - libnemo.git/commitdiff
Makes seed be optional since this is supported in the library
authorKjetil Mehl <kjetil@mehl.no>
Sun, 7 Mar 2021 12:53:51 +0000 (13:53 +0100)
committerKjetil Mehl <kjetil@mehl.no>
Sun, 7 Mar 2021 12:53:51 +0000 (13:53 +0100)
index.ts

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