*validateMnemonic returns a boolean
This commit is contained in:
parent
db4b61bdd9
commit
7fad293bdc
|
@ -8,7 +8,7 @@ export function getSeed() {
|
||||||
const seed = config.str("seed");
|
const seed = config.str("seed");
|
||||||
|
|
||||||
let err = bip39.validateMnemonic(seed, wordlist);
|
let err = bip39.validateMnemonic(seed, wordlist);
|
||||||
if (err !== null) {
|
if (err) {
|
||||||
errorExit("LUME_WEB_RELAY_SEED is invalid. Aborting.");
|
errorExit("LUME_WEB_RELAY_SEED is invalid. Aborting.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue