simplewallet: fix --generate-from-json setting wrong wallet filename

This commit is contained in:
moneromooo-monero 2018-09-19 19:55:38 +00:00
parent bad2c7cf31
commit 8db2d8d416
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -3278,10 +3278,10 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
else if (!m_generate_from_json.empty()) else if (!m_generate_from_json.empty())
{ {
m_wallet_file = m_generate_from_json;
try try
{ {
m_wallet = tools::wallet2::make_from_json(vm, false, m_wallet_file, password_prompter); m_wallet = tools::wallet2::make_from_json(vm, false, m_generate_from_json, password_prompter);
m_wallet_file = m_wallet->path();
} }
catch (const std::exception &e) catch (const std::exception &e)
{ {