Refactor address lookups

This commit is contained in:
Aditya Kulkarni
2019-05-07 11:33:00 -07:00
parent 7531e11aa2
commit d8b43896de
4 changed files with 8 additions and 8 deletions

View File

@@ -355,7 +355,7 @@ void RPC::fillTxJsonParams(json& params, Tx tx) {
// Force it through string for rounding. Without this, decimal points beyond 8 places
// will appear, causing an "invalid amount" error
rec["amount"] = Settings::getDecimalString(toAddr.amount).toStdString(); //.toDouble();
if (toAddr.addr.startsWith("z") && !toAddr.encodedMemo.trimmed().isEmpty())
if (Settings::isZAddress(toAddr.addr) && !toAddr.encodedMemo.trimmed().isEmpty())
rec["memo"] = toAddr.encodedMemo.toStdString();
allRecepients.push_back(rec);