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

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