*Ensure we are using the core namespace
This commit is contained in:
parent
a628a9a07f
commit
21887df639
|
@ -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", {
|
||||
core: {
|
||||
seed: bip39.generateMnemonic(wordlist),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue