diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-13 11:02:06 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-13 11:02:06 +0100 |
commit | ffe27127266d42d9dda26fea227775ba60133bce (patch) | |
tree | 6f960682ef7c915de1e8090a6db9336a6af8009d /src | |
parent | Merge pull request #2384 (diff) | |
download | monero-ffe27127266d42d9dda26fea227775ba60133bce.tar.xz |
wallet_rpc_server: fix index for newly added address book entry
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 773d12775..eaca434b2 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1545,7 +1545,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; } //------------------------------------------------------------------------------------------------------------------------------ |