*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 * as bip39 from "@scure/bip39";
|
||||||
import { wordlist } from "@scure/bip39/wordlists/english";
|
import { wordlist } from "@scure/bip39/wordlists/english";
|
||||||
|
|
||||||
if (!config.str("seed")) {
|
if (!config.str("core.seed")) {
|
||||||
config.save("account", {
|
config.save("account", {
|
||||||
seed: bip39.generateMnemonic(wordlist),
|
core: {
|
||||||
|
seed: bip39.generateMnemonic(wordlist),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue