Skip to content

Commit

Permalink
#253 fixed build and logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Jan 14, 2019
1 parent 380506e commit e86810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/jni.cpp
Expand Up @@ -921,7 +921,7 @@ JNIEXPORT jobject JNICALL BEAM_JAVA_API_INTERFACE(createWallet)(JNIEnv *env, job

WordList phrases = string_helpers::split(JString(env, phrasesStr).value(), ';');
assert(phrases.size() == 12);
if (isValidMnemonic(phrases, language::en) != 12)
if (!isValidMnemonic(phrases, language::en))
{
LOG_ERROR() << "Invalid seed phrases provided: " << JString(env, phrasesStr).value();
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion wallet/cli.cpp
Expand Up @@ -165,7 +165,7 @@ namespace
auto tempPhrase = vm[cli::SEED_PHRASE].as<string>();
phrase = string_helpers::split(tempPhrase, ';');
assert(phrase.size() == 12);
if (isValidMnemonic(phrase, language::en))
if (!isValidMnemonic(phrase, language::en))
{
LOG_ERROR() << "Invalid seed phrases provided: " << tempPhrase;
return false;
Expand Down

0 comments on commit e86810f

Please sign in to comment.