Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix payment ID parsing in zedwallet
  • Loading branch information
zpalmtree committed Jun 26, 2019
1 parent c9908d5 commit 6430c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/zedwallet/CommandImplementations.cpp
Expand Up @@ -436,7 +436,7 @@ void printOutgoingTransfer(CryptoNote::WalletTransaction t,
<< WarningMsg("Total Spent: " + formatAmount(-t.totalAmount))
<< std::endl;

const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::fromHex(t.extra));
const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::asBinaryArray(t.extra));

if (paymentID != "")
{
Expand Down Expand Up @@ -468,7 +468,7 @@ void printIncomingTransfer(CryptoNote::WalletTransaction t,
std::cout << SuccessMsg("Amount: " + formatAmount(t.totalAmount))
<< std::endl;

const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::fromHex(t.extra));
const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::asBinaryArray(t.extra));

if (paymentID != "")
{
Expand Down
2 changes: 1 addition & 1 deletion src/zedwallet/Transfer.cpp
Expand Up @@ -106,7 +106,7 @@ bool confirmTransaction(CryptoNote::TransactionParameters t,
<< "," << std::endl
<< "and a node fee of " << SuccessMsg(formatAmount(nodeFee));

const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::fromHex(t.extra));
const std::string paymentID = Utilities::getPaymentIDFromExtra(Common::asBinaryArray(t.extra));

/* Lets not split the integrated address out into its address and
payment ID combo. It'll confused users. */
Expand Down

0 comments on commit 6430c59

Please sign in to comment.