From c25e8b4aff6bccbcfdb5f235fd09eb2efd7acdd5 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 6 Dec 2022 16:55:58 -0500 Subject: [PATCH] *generateSeedPhraseDeterministic returns an array, need only the 1st element --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 73824c2..16a176c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ if (!config.str("seed")) { config.saveConfigJson("account.json", { seed: generateSeedPhraseDeterministic( crypto.randomBytes(100).toString("hex") - ), + )[0], }); }