mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-17 21:53:54 +01:00
cleanup
This commit is contained in:
@@ -774,7 +774,7 @@ namespace monero {
|
||||
crypto::secret_key recoveryKey;
|
||||
std::string language;
|
||||
bool isValid = crypto::ElectrumWords::words_to_bytes(mnemonic, recoveryKey, language);
|
||||
if (!isValid) throw runtime_error("Invalid mnemonic"); // TODO: need proper error handling
|
||||
if (!isValid) throw runtime_error("Invalid mnemonic");
|
||||
if (language == crypto::ElectrumWords::old_language_name) language = Language::English().get_language_name();
|
||||
|
||||
// initialize wallet
|
||||
|
||||
Reference in New Issue
Block a user