mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 20:06:18 -04:00
wallet: provide original address for outgoing transfers
This commit is contained in:
parent
6335509727
commit
884df82db3
4 changed files with 21 additions and 6 deletions
|
@ -350,7 +350,7 @@ namespace tools
|
|||
entry.destinations.push_back(wallet_rpc::transfer_destination());
|
||||
wallet_rpc::transfer_destination &td = entry.destinations.back();
|
||||
td.amount = d.amount;
|
||||
td.address = d.original.empty() ? get_account_address_as_str(m_wallet->nettype(), d.is_subaddress, d.addr) : d.original;
|
||||
td.address = d.address(m_wallet->nettype(), pd.m_payment_id);
|
||||
}
|
||||
|
||||
entry.type = "out";
|
||||
|
@ -380,7 +380,7 @@ namespace tools
|
|||
entry.destinations.push_back(wallet_rpc::transfer_destination());
|
||||
wallet_rpc::transfer_destination &td = entry.destinations.back();
|
||||
td.amount = d.amount;
|
||||
td.address = d.original.empty() ? get_account_address_as_str(m_wallet->nettype(), d.is_subaddress, d.addr) : d.original;
|
||||
td.address = d.address(m_wallet->nettype(), pd.m_payment_id);
|
||||
}
|
||||
|
||||
entry.type = is_failed ? "failed" : "pending";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue