mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 03:40:26 -04:00
wallet: fix --generate-from-json using wrong password
This commit is contained in:
parent
83d8f03c23
commit
25e5890d37
6 changed files with 20 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue