mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:58:52 +00:00
Merge pull request #4405
8db2d8d4
simplewallet: fix --generate-from-json setting wrong wallet filename (moneromooo-monero)
This commit is contained in:
commit
b65e236fda
@ -3273,10 +3273,10 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
|
||||
|
||||
else if (!m_generate_from_json.empty())
|
||||
{
|
||||
m_wallet_file = m_generate_from_json;
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user