*Ensure we are using the core namespace

This commit is contained in:
Derrick Hammer 2023-04-18 23:53:00 -04:00
parent a628a9a07f
commit 21887df639
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -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),
},
});
}