mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
wallet_rpc_server: fix index for newly added address book entry
This commit is contained in:
parent
02e5dcd2fa
commit
ffe2712726
1 changed files with 1 additions and 1 deletions
|
@ -1545,7 +1545,7 @@ namespace tools
|
||||||
er.message = "Failed to add address book entry";
|
er.message = "Failed to add address book entry";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
res.index = m_wallet->get_address_book().size();
|
res.index = m_wallet->get_address_book().size() - 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue