From 21887df639b46a46c79fb7f2dd940e0be3177405 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 18 Apr 2023 23:53:00 -0400 Subject: [PATCH] *Ensure we are using the core namespace --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2176f1b..2889849 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,9 +7,11 @@ import { start as startSwarm, get as getSwarm } from "./modules/swarm.js"; import * as bip39 from "@scure/bip39"; import { wordlist } from "@scure/bip39/wordlists/english"; -if (!config.str("seed")) { +if (!config.str("core.seed")) { config.save("account", { - seed: bip39.generateMnemonic(wordlist), + core: { + seed: bip39.generateMnemonic(wordlist), + }, }); }