diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-10-02 22:39:56 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-10-02 22:39:57 +0200 |
| commit | 66094dee00845dd8a7eefb0e73ed65d4b7a76d2e (patch) | |
| tree | d7db90eb69beb278b7de01e920364581ee65ba6b /src/simplewallet/simplewallet.cpp | |
| parent | be6063ea59a713c4ddfdd27e8d8d240fec63a3f1 (diff) | |
| parent | 25e5890d37a1b243d4b8aadb45743d715bd4d0f9 (diff) | |
| download | monzero-core-66094dee00845dd8a7eefb0e73ed65d4b7a76d2e.tar.gz monzero-core-66094dee00845dd8a7eefb0e73ed65d4b7a76d2e.tar.xz monzero-core-66094dee00845dd8a7eefb0e73ed65d4b7a76d2e.zip | |
Merge pull request #4482
25e5890d wallet: fix --generate-from-json using wrong password (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 7c68de3f3..90f8535d7 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3275,7 +3275,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm) { try { - m_wallet = tools::wallet2::make_from_json(vm, false, m_generate_from_json, password_prompter); + auto rc = tools::wallet2::make_from_json(vm, false, m_generate_from_json, password_prompter); + m_wallet = std::move(rc.first); + password = rc.second.password(); m_wallet_file = m_wallet->path(); } catch (const std::exception &e) |
