diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-23 14:31:54 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-12 12:16:35 +0000 |
commit | 2eff9b12d898ff0f3500c7124131e2881d2c5673 (patch) | |
tree | 14991bf7da8311f4dc5ed84ba09100051fc3c8b3 /src/simplewallet | |
parent | simplewallet: disable long payment ids by default (diff) | |
download | monero-2eff9b12d898ff0f3500c7124131e2881d2c5673.tar.xz |
core, wallet: remember original text version of destination address
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 1cacb460c..b9c84d453 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4857,6 +4857,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri info.has_payment_id = true; } de.amount = amount; + de.original = local_args[i]; ++i; } else if (i + 1 < local_args.size()) @@ -4869,6 +4870,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri ", " << tr("expected number from 0 to ") << print_money(std::numeric_limits<uint64_t>::max()); return true; } + de.original = local_args[i]; i += 2; } else @@ -4887,6 +4889,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri } de.addr = info.address; de.is_subaddress = info.is_subaddress; + de.is_integrated = info.has_payment_id; num_subaddresses += info.is_subaddress; if (info.has_payment_id || !payment_id_uri.empty()) |