aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-25 16:51:07 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-25 16:51:07 +0200
commit5953724f6950354e5928baddbc580e057aebdf57 (patch)
tree3da8fe34792e1678743213376ef51dd32375f4d1 /src/wallet
parentMerge pull request #2442 (diff)
parentwallet_rpc_server: fix index for newly added address book entry (diff)
downloadmonero-5953724f6950354e5928baddbc580e057aebdf57.tar.xz
Merge pull request #2443
ffe27127 wallet_rpc_server: fix index for newly added address book entry (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 9368b8cb6..54f4c4f7e 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1536,7 +1536,7 @@ namespace tools
er.message = "Failed to add address book entry";
return false;
}
- res.index = m_wallet->get_address_book().size();
+ res.index = m_wallet->get_address_book().size() - 1;
return true;
}
//------------------------------------------------------------------------------------------------------------------------------