seed: use member variable not moved argument
authortobtoht <tob@featherwallet.org>
Tue, 8 Apr 2025 19:50:09 +0000 (21:50 +0200)
committertobtoht <tob@featherwallet.org>
Tue, 8 Apr 2025 19:50:09 +0000 (21:50 +0200)
src/utils/Seed.cpp

index 9396cb35c0bc16341a9d7ccda72a91200b16b5cb..87f0f70a4859b44918843262638671eadd9f29b4 100644 (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";
             }