From 0b8cf42fcf051f6ee7047acfd27d94eade9a0aee Mon Sep 17 00:00:00 2001 From: ricmoo Date: Tue, 4 Apr 2017 17:18:23 -0400 Subject: [PATCH] Changed validMnemonic to isValidMnemonic. --- wallet/hdnode.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallet/hdnode.js b/wallet/hdnode.js index faed04c20..f4d50da25 100644 --- a/wallet/hdnode.js +++ b/wallet/hdnode.js @@ -238,11 +238,12 @@ function entropyToMnemonic(entropy) { return words.join(' '); } -function validMnemonic(mnemonic) { +function isValidMnemonic(mnemonic) { try { mnemonicToEntropy(mnemonic); return true; } catch (error) { } + return false; } @@ -254,5 +255,5 @@ module.exports = { entropyToMnemonic: entropyToMnemonic, mnemonicToSeed: mnemonicToSeed, - validMnemonic: validMnemonic, + isValidMnemonic: isValidMnemonic, };