mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 15:56:14 -04:00
Merge pull request #5750
884df82
wallet: provide original address for outgoing transfers (xiphon)
This commit is contained in:
commit
1bd3f1a1fb
4 changed files with 21 additions and 6 deletions
|
@ -352,7 +352,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";
|
||||
|
@ -382,7 +382,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