diff options
author | xiphon <xiphon@protonmail.com> | 2019-07-07 17:45:13 +0300 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2019-07-10 13:39:18 +0000 |
commit | 884df82db37d2f93151efc9b3dd165062444c7e6 (patch) | |
tree | 561ff6f5d0616240465926b8dd25614c558658c5 /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #5641 (diff) | |
download | monero-884df82db37d2f93151efc9b3dd165062444c7e6.tar.xz |
wallet: provide original address for outgoing transfers
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 8b8d832dc..11d7c136b 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -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"; |