seed: use member variable not moved argument

This commit is contained in:
tobtoht 2025-04-08 21:50:09 +02:00
parent 398ac9aed7
commit 32ce43fc17
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -138,7 +138,7 @@ Seed::Seed(Type type, QStringList mnemonic, NetworkType::Type networkType)
if (this->type == Type::MONERO) {
crypto::secret_key recovery_key;
std::string old_language;
if (!crypto::ElectrumWords::words_to_bytes(mnemonic.join(" ").toStdString(), recovery_key, old_language)) {
if (!crypto::ElectrumWords::words_to_bytes(this->mnemonic.join(" ").toStdString(), recovery_key, old_language)) {
if (this->mnemonic.length() == 25) {
this->errorString = "Invalid checksum word";
}