diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-03 20:38:49 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-03 20:38:49 +0000 |
| commit | 29bf6a5825350850037a9504f4b0c45b34b1eb75 (patch) | |
| tree | 6af7d3dd67a86b478e876b225f81c830bfbfb017 /src | |
| parent | 8a1de602f0a049d85d6f2c7a231d90b3c9cb310e (diff) | |
| parent | 6db72c40e1764b04ab149114025da5fa7a1da7b6 (diff) | |
| download | monzero-core-29bf6a5825350850037a9504f4b0c45b34b1eb75.tar.gz monzero-core-29bf6a5825350850037a9504f4b0c45b34b1eb75.tar.xz monzero-core-29bf6a5825350850037a9504f4b0c45b34b1eb75.zip | |
Merge pull request #10590
6db72c4 wallet_rpc_server: preserve payment ID when editing address book (selsta)
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 634bdae76..6a3e92b0b 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -3336,14 +3336,14 @@ namespace tools } entry.m_address = info.address; entry.m_is_subaddress = info.is_subaddress; - if (info.has_payment_id) - entry.m_payment_id = info.payment_id; + entry.m_has_payment_id = info.has_payment_id; + entry.m_payment_id = info.has_payment_id ? info.payment_id : crypto::null_hash8; } if (req.set_description) entry.m_description = req.description; - if (!m_wallet->set_address_book_row(req.index, entry.m_address, req.set_address && entry.m_has_payment_id ? &entry.m_payment_id : NULL, entry.m_description, entry.m_is_subaddress)) + if (!m_wallet->set_address_book_row(req.index, entry.m_address, entry.m_has_payment_id ? &entry.m_payment_id : NULL, entry.m_description, entry.m_is_subaddress)) { er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR; er.message = "Failed to edit address book entry"; |
