aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-21 20:46:54 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-21 20:46:54 +0200
commitb65e236fdad07648204a71812fcf4e97293ef227 (patch)
tree3684bf300011466a6ce66963a08d7a68188f11f8
parentMerge pull request #4402 (diff)
parentsimplewallet: fix --generate-from-json setting wrong wallet filename (diff)
downloadmonero-b65e236fdad07648204a71812fcf4e97293ef227.tar.xz
Merge pull request #4405
8db2d8d4 simplewallet: fix --generate-from-json setting wrong wallet filename (moneromooo-monero)
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 7f71ce9f2..302d2a999 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -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)
{