aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-02 22:39:56 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-02 22:39:57 +0200
commit66094dee00845dd8a7eefb0e73ed65d4b7a76d2e (patch)
treed7db90eb69beb278b7de01e920364581ee65ba6b /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4479 (diff)
parentwallet: fix --generate-from-json using wrong password (diff)
downloadmonero-66094dee00845dd8a7eefb0e73ed65d4b7a76d2e.tar.xz
Merge pull request #4482
25e5890d wallet: fix --generate-from-json using wrong password (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 5991e0cc2..8b15359cc 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -3352,7 +3352,8 @@ public:
{
try
{
- wal = tools::wallet2::make_from_json(vm, true, from_json, password_prompt);
+ auto rc = tools::wallet2::make_from_json(vm, true, from_json, password_prompt);
+ wal = std::move(rc.first);
}
catch (const std::exception &e)
{