wallet_rpc_server: fix index for newly added address book entry

This commit is contained in:
moneromooo-monero 2017-09-13 11:02:06 +01:00
parent 02e5dcd2fa
commit ffe2712726
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

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