*Fix valid check
This commit is contained in:
parent
5fba29b3ee
commit
a85b20769a
|
@ -7,8 +7,8 @@ import { errorExit } from "./error.js";
|
||||||
export function getSeed() {
|
export function getSeed() {
|
||||||
const seed = config.str("seed");
|
const seed = config.str("seed");
|
||||||
|
|
||||||
let err = bip39.validateMnemonic(seed, wordlist);
|
let valid = bip39.validateMnemonic(seed, wordlist);
|
||||||
if (err) {
|
if (!valid) {
|
||||||
errorExit("LUME_WEB_RELAY_SEED is invalid. Aborting.");
|
errorExit("LUME_WEB_RELAY_SEED is invalid. Aborting.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue