Merge pull request #2443

ffe27127 wallet_rpc_server: fix index for newly added address book entry (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-25 16:51:07 +02:00
commit 5953724f69
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
//------------------------------------------------------------------------------------------------------------------------------